aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorRoberto Sassu <[email protected]>2023-11-16 09:01:25 +0000
committerCasey Schaufler <[email protected]>2024-01-26 17:08:16 +0000
commitf0816d4332c3f764cd42cf8124a193e17eeccba9 (patch)
tree76ed8ca1802e9bf69d6a57a4c94bf83f103fc107 /scripts/bpf_doc.py
parentsmack: Initialize the in-memory inode in smack_inode_init_security() (diff)
downloadkernel-f0816d4332c3f764cd42cf8124a193e17eeccba9.tar.gz
kernel-f0816d4332c3f764cd42cf8124a193e17eeccba9.zip
ramfs: Initialize security of in-memory inodes
Add a call security_inode_init_security() after ramfs_get_inode(), to let LSMs initialize the inode security field. Skip ramfs_fill_super(), as the initialization is done through the sb_set_mnt_opts hook. Calling security_inode_init_security() call inside ramfs_get_inode() is not possible since, for CONFIG_SHMEM=n, tmpfs also calls the former after the latter. Pass NULL as initxattrs() callback to security_inode_init_security(), since the purpose of the call is only to initialize the in-memory inodes. Cc: Hugh Dickins <[email protected]> Acked-by: Andrew Morton <[email protected]> Signed-off-by: Roberto Sassu <[email protected]> Signed-off-by: Casey Schaufler <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions