From a6cf207363ce9911ba9eb602cd0386cf85360938 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 20 Jul 2024 20:37:47 +0300 Subject: [PATCH] filesystem, devices: move gadgetfs to usbfs_t It is a USB Gadget config pseudo-FS, not a network nor distributed FS Signed-off-by: Dmitry Sharshakov --- policy/modules/kernel/devices.te | 1 + policy/modules/kernel/filesystem.te | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/kernel/devices.te b/policy/modules/kernel/devices.te index cd7977f97..c06a77ade 100644 --- a/policy/modules/kernel/devices.te +++ b/policy/modules/kernel/devices.te @@ -361,6 +361,7 @@ fs_pseudo_type(usbfs_t) genfscon usbfs / gen_context(system_u:object_r:usbfs_t,s0) genfscon usbdevfs / gen_context(system_u:object_r:usbfs_t,s0) genfscon functionfs / gen_context(system_u:object_r:usbfs_t,s0) +genfscon gadgetfs / gen_context(system_u:object_r:usbfs_t,s0) # # usb_device_t is the type for /dev/bus/usb/[0-9]+/[0-9]+ diff --git a/policy/modules/kernel/filesystem.te b/policy/modules/kernel/filesystem.te index 46b90d46e..f93c99408 100644 --- a/policy/modules/kernel/filesystem.te +++ b/policy/modules/kernel/filesystem.te @@ -336,7 +336,6 @@ genfscon lustre / gen_context(system_u:object_r:nfs_t,s0) genfscon ncpfs / gen_context(system_u:object_r:nfs_t,s0) genfscon reiserfs / gen_context(system_u:object_r:nfs_t,s0) genfscon panfs / gen_context(system_u:object_r:nfs_t,s0) -genfscon gadgetfs / gen_context(system_u:object_r:nfs_t,s0) ######################################## #