mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
Make validatetrans decisions available through selinuxfs. "/validatetrans" is added to selinuxfs for this purpose. This functionality is needed by file system servers implemented in userspace or kernelspace without the VFS layer. Writing "$oldcontext $newcontext $tclass $taskcontext" to /validatetrans is expected to return 0 if the transition is allowed and -EPERM otherwise. Signed-off-by: Andrew Perepechko <[email protected]> CC: [email protected] Acked-by: Stephen Smalley <[email protected]> Signed-off-by: Paul Moore <[email protected]>