Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • capability.c
Find file BlameHistoryPermalink
  • Dwight Engen's avatar
    xfs: ioctl check for capabilities in the current user namespace · fd5e2aa8
    Dwight Engen authored Aug 15, 2013
    
    
    Use inode_capable() to check if SUID|SGID bits should be cleared to match
    similar check in inode_change_ok().
    
    The check for CAP_LINUX_IMMUTABLE was not modified since all other file
    systems also check against init_user_ns rather than current_user_ns.
    
    Only allow changing of projid from init_user_ns.
    
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarGao feng <gaofeng@cn.fujitsu.com>
    Signed-off-by: default avatarDwight Engen <dwight.engen@oracle.com>
    Signed-off-by: default avatarBen Myers <bpm@sgi.com>
    fd5e2aa8
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7