Skip to content
Snippets Groups Projects
Commit c3f1da99 authored by William Roberts's avatar William Roberts
Browse files

domain: neverallow on setfcap


Filesystem capabilities should only be set by the build tools
or by recovery during an update. Place a neverallow ensuring
this property.

Change-Id: I136c5cc16dff0c0faa3799d0ab5e29b43454a610
Signed-off-by: default avatarWilliam Roberts <william.c.roberts@intel.com>
parent ce3b2a41
No related branches found
No related tags found
No related merge requests found
......@@ -653,3 +653,10 @@ neverallow {
# Do not allow kernel module loading except from system,
# vendor, and boot partitions.
neverallow * ~{ system_file rootfs }:system module_load;
# Only allow filesystem caps to be set at build time or
# during upgrade by recovery.
neverallow {
domain
-recovery
} self:capability setfcap;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment