qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V5 06/14] hw/9pfs: Open and create files


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH V5 06/14] hw/9pfs: Open and create files
Date: Thu, 04 Oct 2012 08:50:33 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1

On 12/14/2011 06:20 AM, M. Mohan Kumar wrote:
> From: "M. Mohan Kumar" <address@hidden>
> 
> Add interfaces to open and create files for proxy file system driver.
> 
> Signed-off-by: M. Mohan Kumar <address@hidden>
> ---
>  fsdev/virtfs-proxy-helper.c |  178 ++++++++++++++++++++++++++++++++++++++++-
>  hw/9pfs/virtio-9p-proxy.c   |  187 
> +++++++++++++++++++++++++++++++++++++++++--
>  hw/9pfs/virtio-9p-proxy.h   |   11 +++
>  3 files changed, 367 insertions(+), 9 deletions(-)
> 

> +static int setfsugid(int uid, int gid)
> +{
> +    /*
> +     * We still need DAC_OVERRIDE because  we don't change
> +     * supplementary group ids, and hence may be subjected DAC rules
> +     */
> +    cap_value_t cap_list[] = {
> +        CAP_DAC_OVERRIDE,
> +    };
> +
> +    setfsgid(gid);
> +    setfsuid(uid);

Fedora 17 now complains about this:

  CC    fsdev/virtfs-proxy-helper.o
fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of
‘setfsgid’, declared with attribute warn_unused_result
[-Werror=unused-result]
fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of
‘setfsuid’, declared with attribute warn_unused_result
[-Werror=unused-result]

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]