lkml.org 
[lkml]   [2011]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH 09/10] userns: check user namespace for task->file uid equivalence checks
    From
    Date
    On Thu, 2011-02-24 at 15:03 +0000, Serge E. Hallyn wrote:
    > --- a/include/linux/fs.h
    > +++ b/include/linux/fs.h
    > @@ -1446,8 +1446,13 @@ enum {
    > #define put_fs_excl() atomic_dec(&current->fs_excl)
    > #define has_fs_excl() atomic_read(&current->fs_excl)
    >
    > -#define is_owner_or_cap(inode) \
    > - ((current_fsuid() == (inode)->i_uid) || capable(CAP_FOWNER))
    > +/*
    > + * until VFS tracks user namespaces for inodes, just make all files
    > + * belong to init_user_ns
    > + */
    > +extern struct user_namespace init_user_ns;

    init_user_ns gets declared in fs.h in this patch, utsname.h in patch #1,
    capability.h in #2, ipc_namespace.h in #7. Could this declaration be
    kept to a single header?




    \
     
     \ /
      Last update: 2011-03-01 23:41    [W:0.023 / U:29.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site