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
  • security
  • security.c
Find file BlameHistoryPermalink
  • Andrii Nakryiko's avatar
    bpf,lsm: add BPF token LSM hooks · d734ca7b
    Andrii Nakryiko authored Nov 30, 2023
    
    
    Wire up bpf_token_create and bpf_token_free LSM hooks, which allow to
    allocate LSM security blob (we add `void *security` field to struct
    bpf_token for that), but also control who can instantiate BPF token.
    This follows existing pattern for BPF map and BPF prog.
    
    Also add security_bpf_token_allow_cmd() and security_bpf_token_capable()
    LSM hooks that allow LSM implementation to control and negate (if
    necessary) BPF token's delegation of a specific bpf_cmd and capability,
    respectively.
    
    Acked-by: default avatarPaul Moore <paul@paul-moore.com>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/r/20231130185229.2688956-12-andrii@kernel.org
    
    
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    d734ca7b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7