]> git.baikalelectronics.ru Git - kernel.git/commit
mm: create security context for memfd_secret inodes
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 25 Jan 2022 14:33:04 +0000 (15:33 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 13 Jun 2022 18:15:23 +0000 (14:15 -0400)
commitd27bb5a22c0f9cc997ac48b0ee08a608f5421ad6
tree7dc146d23b463c610fe0e4df97f389cd08022a64
parent31b12eab054116a5cb875b91449057259de9d343
mm: create security context for memfd_secret inodes

Create a security context for the inodes created by memfd_secret(2) via
the LSM hook inode_init_security_anon to allow a fine grained control.
As secret memory areas can affect hibernation and have a global shared
limit access control might be desirable.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
mm/secretmem.c