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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • capability.c
Find file BlameHistoryPermalink
  • Khadija Kamran's avatar
    lsm: constify the 'target' parameter in security_capget() · 6672efbb
    Khadija Kamran authored Aug 07, 2023
    
    
    Three LSMs register the implementations for the "capget" hook: AppArmor,
    SELinux, and the normal capability code. Looking at the function
    implementations we may observe that the first parameter "target" is not
    changing.
    
    Mark the first argument "target" of LSM hook security_capget() as
    "const" since it will not be changing in the LSM hook.
    
    cap_capget() LSM hook declaration exceeds the 80 characters per line
    limit. Split the function declaration to multiple lines to decrease the
    line length.
    
    Signed-off-by: default avatarKhadija Kamran <kamrankhadijadj@gmail.com>
    Acked-by: default avatarJohn Johansen <john.johansen@canonical.com>
    [PM: align the cap_capget() declaration, spelling fixes]
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    6672efbb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7