platform_system_sepolicy/private
Thiébaud Weksteen 9ec532752d Add fusefs_type for FUSE filesystems
Any FUSE filesystem will receive the 'fuse' type when mounted. It is
possible to change this behaviour by specifying the "context=" or
"fscontext=" option in mount().

Because 'fuse' has historically been used only for the emulated storage,
it also received the 'sdcard_type' attribute. Replace the 'sdcard_type'
attribute from 'fuse' with the new 'fusefs_type'. This attribute can be
attached on derived types (such as app_fusefs).

This change:
- Remove the neverallow restriction on this new type. This means any
  custom FUSE implementation can be mounted/unmounted (if the correct
  allow rule is added). See domain.te.
- Change the attribute of 'fuse' from 'sdcard_type' to 'fusefs_type'.
  See file.te.
- Modify all references to 'sdcard_type' to explicitly include 'fuse'
  for compatibility reason.

Bug: 177481425
Bug: 190804537
Test: Build and boot aosp_cf_x86_64_phone-userdebug
Change-Id: Id4e410a049f72647accd4c3cf43eaa55e94c318f
2021-06-28 13:18:46 +02:00
..
compat Add camera2 extension property policies 2021-06-18 23:59:41 +00:00
access_vectors Merge "Keystore 2.0: Add early_boot_ended permission" 2021-03-24 19:47:47 +00:00
adbd.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
aidl_lazy_test_server.te Add aidl_lazy_test_server 2020-01-07 15:11:03 -08:00
apex_test_prepostinstall.te
apexd.te Allow apexd to call f2fs-compression related ioctls on staging_data_file 2021-06-18 21:54:39 +01:00
app.te Enable ART properties modularization 2021-06-01 16:14:55 -07:00
app_neverallows.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
app_zygote.te Enable ART properties modularization 2021-06-01 16:14:55 -07:00
artd.te Enable ART properties modularization 2021-06-01 16:14:55 -07:00
asan_extract.te Move system property rules to private 2020-03-18 16:46:04 +00:00
atrace.te Make AIDL HAL client attribute an exclusive client. 2020-09-11 00:02:00 +00:00
attributes Add expandattribute to system_and_vendor_property_type 2020-12-01 19:58:02 +09:00
audioserver.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
auditctl.te
automotive_display_service.te Update automotive_display_service selinux policy 2021-06-19 03:00:25 +00:00
binderservicedomain.te Move list permission from keystore2_key to keystore class. 2020-10-01 05:33:31 +00:00
blank_screen.te Allow blank_screen to make binder calls to the servicemanager 2020-04-02 19:38:36 +00:00
blkid.te
blkid_untrusted.te
bluetooth.te Allow Bluetooth to access SystemSuspend control service 2020-10-14 00:31:01 +00:00
bluetoothdomain.te
bootanim.te Allow boot animation to update boot status. 2021-04-28 15:17:09 +01:00
bootstat.te Enable incidentd access to ro.boot.bootreason 2020-04-09 15:57:06 -07:00
boringssl_self_test.te
bpfloader.te sepolicy: Allow lmkd to access bpf map to read GPU allocation statistics 2021-06-11 20:59:53 +00:00
bufferhubd.te
bug_map Merge "Revert "Add bug_map entry for unrelated SELinux denial to unblock IC."" 2021-01-20 07:54:34 +00:00
cameraserver.te
canhalconfigurator.te Revert "Revert "hal_can_*: use hal_attribute_service"" 2021-01-11 18:25:51 +00:00
charger.te Fix broken neverallow rules 2021-03-10 10:44:22 +09:00
clatd.te
coredomain.te Revert "Revert "Add neverallows for debugfs access"" 2021-05-04 22:06:46 -07:00
cppreopts.te Ignore the denial when system_other is erased 2020-03-31 20:10:26 +08:00
crash_dump.te Allowing userdebug/eng builds crash dump access to ks 2021-04-30 18:50:54 +00:00
credstore.te Keystore 2.0: Remove keystore2.enable property. 2021-03-19 10:07:49 -07:00
crosvm.te Rename VirtManager to VirtualizationService. 2021-05-21 14:47:30 +00:00
derive_classpath.te Add support for invoking derive_classpath from otadexopt 2021-04-27 14:31:54 -07:00
derive_sdk.te Rename sdkext sepolicy to sdkextensions 2020-01-08 11:41:18 +00:00
dex2oat.te Allow dex2oat to read /apex/apex-info-list.xml 2021-04-28 13:37:27 +01:00
dexoptanalyzer.te Allow dexoptanalyzer to read /apex/apex-info-list.xml 2021-06-21 10:24:38 +01:00
dhcp.te Move system property rules to private 2020-03-18 16:46:04 +00:00
dnsmasq.te
domain.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
drmserver.te Relabel drm related props from exported*_prop 2020-06-19 10:52:10 +09:00
dumpstate.te Merge changes If26ba23d,Ibea38822 2021-05-05 17:31:35 +00:00
ephemeral_app.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
fastbootd.te Fix fastbootd denials when using /proc/bootconfig. 2021-06-07 18:40:24 -07:00
file.te Set sepolicy for VirtualizationService data directory and mk_cdisk. 2021-05-20 15:00:49 +00:00
file_contexts Remove wait_for_keymaster and references 2021-06-17 11:12:16 -07:00
file_contexts_asan Fix data/asan/system/system_ext/lib selinux rule for file_contexts_asan 2020-06-08 10:05:07 +00:00
file_contexts_overlayfs
fingerprintd.te
flags_health_check.te Add sepolicy swcodec native flag namespace. 2021-02-16 09:22:16 -08:00
fs_use private/fs_use: Enable selinux for virtiofs 2020-03-06 17:19:04 +09:00
fsck.te Remove microdroid specific rules and files 2021-06-07 19:22:18 +09:00
fsck_untrusted.te
fsverity_init.te SELinux policy for on-device signing binary. 2021-02-03 16:15:48 +01:00
fwk_bufferhub.te
gatekeeperd.te Move system property rules to private 2020-03-18 16:46:04 +00:00
genfs_contexts [sepolicy] allow system server to read incfs metrics from sysfs 2021-05-04 22:56:41 -07:00
gki_apex_prepostinstall.te Allow GKI APEX to use apexd:fd 2020-08-28 17:29:58 -07:00
gmscore_app.te Add DCK eligibility properties 2021-05-21 23:31:09 +00:00
gpuservice.te Move more properties out of exported3_default_prop 2020-07-21 13:11:57 +09:00
gsid.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
hal_allocator_default.te
hal_lazy_test.te Add rules for hidl_lazy_test* 2020-04-24 14:09:41 -07:00
halclientdomain.te
halserverdomain.te
healthd.te Remove exported2_system_prop 2020-08-06 12:52:32 +09:00
heapprofd.te Allow heapprofd to read shell_test_data_file. 2021-02-09 13:28:49 +00:00
hidl_lazy_test_server.te Add rules for hidl_lazy_test* 2020-04-24 14:09:41 -07:00
hwservice.te Add rules for hidl_lazy_test* 2020-04-24 14:09:41 -07:00
hwservice_contexts Remove thermalcallback_hwservice. 2020-09-16 21:57:05 +00:00
hwservicemanager.te Move system property rules to private 2020-03-18 16:46:04 +00:00
idmap.te
incident.te
incident_helper.te
incidentd.te Revert "Revert "Add neverallows for debugfs access"" 2021-05-04 22:06:46 -07:00
init.te Merge "Add crosvm domain and give virtmanager and crosvm necessary permissions." 2021-04-22 18:57:15 +00:00
initial_sid_contexts
initial_sids
inputflinger.te
installd.te Revert "Suppress avc denials due to missing kernel config on mixed version boot test" 2021-01-22 11:05:43 +00:00
iorap_inode2filename.te Permissions for odrefresh and /data/misc/apexdata/com.android.art 2021-01-13 10:38:22 +00:00
iorap_prefecherd.te
iorapd.te sepolicy: policies for iorap.inode2filename 2020-02-20 16:38:17 -08:00
isolated_app.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
iw.te
kernel.te Add permissions required to install the DSU to a SD card 2021-01-27 06:36:12 +00:00
keys.conf
keystore.te Remove wait_for_keymaster and references 2021-06-17 11:12:16 -07:00
keystore2_key_contexts Add keystore2 namespace for LocksettingsService. 2021-04-14 16:03:13 -07:00
keystore_keys.te Add keystore2 namespace for LocksettingsService. 2021-04-14 16:03:13 -07:00
linkerconfig.te Use postinstall file_contexts 2021-03-24 17:00:35 -07:00
llkd.te llkd: requires sys_admin permissions 2020-01-15 08:08:59 -08:00
lmkd.te sepolicy: Allow lmkd to access bpf map to read GPU allocation statistics 2021-06-11 20:59:53 +00:00
logd.te Move system property rules to private 2020-03-18 16:46:04 +00:00
logpersist.te sepolicy: rules for uid/pid cgroups v2 hierarchy 2021-02-11 23:40:38 +00:00
lpdumpd.te Add rules for calling ReadDefaultFstab() 2021-03-29 15:23:29 +08:00
mac_permissions.xml
mdnsd.te
mediadrmserver.te
mediaextractor.te Add sepolicy swcodec native flag namespace. 2021-02-16 09:22:16 -08:00
mediametrics.te Allow communication between mediametrics & statsd 2021-03-12 04:06:23 -08:00
mediaprovider.te Allow mediaprovider to find the camera server. 2021-04-14 18:41:28 -07:00
mediaprovider_app.te Revert "Allow the MediaProvider app to set FUSE passthrough property" 2021-05-13 18:18:28 +00:00
mediaserver.te Allow mediaserver start transcoding service. 2021-05-17 13:52:38 -07:00
mediaswcodec.te Add sepolicy swcodec native flag namespace. 2021-02-16 09:22:16 -08:00
mediatranscoding.te Allow binder services to r/w su:tcp_socket 2021-06-08 10:39:02 -07:00
mediatuner.te Allow TunerService to find and call native Package Manager Service 2021-03-01 16:48:02 -08:00
migrate_legacy_obb_data.te
mls Add SELinux policy for using userfaultfd 2021-03-17 04:57:22 -07:00
mls_decl
mls_macros
mlstrustedsubject.te Remove app_data_file:dir access from dexoptanalyzer. 2020-09-22 15:54:02 +01:00
mm_events.te Sepolicy for mm_events 2021-04-06 22:46:32 -04:00
modprobe.te
mtp.te
netd.te Fix sepolicy to netd. 2021-01-27 17:34:01 +08:00
netutils_wrapper.te
network_stack.te Amend networkstack sepolicy for testing 2021-04-15 00:06:05 +08:00
nfc.te Add sepolicy to allow read/write nfc snoop log data 2020-09-24 17:36:07 +08:00
odrefresh.te Enable ART properties modularization 2021-06-01 16:14:55 -07:00
odsign.te Add odsign status properties. 2021-03-16 09:14:29 +01:00
otapreopt_chroot.te Use postinstall file_contexts 2021-03-24 17:00:35 -07:00
otapreopt_slot.te
perfetto.te Sepolicy for mm_events 2021-04-06 22:46:32 -04:00
performanced.te
permissioncontroller_app.te Add missing permissions for Cuttlefish to support GSI testing 2021-05-03 16:49:07 -07:00
platform_app.te sepolicy: add perfetto_producer for platform_app and system_app 2021-06-10 13:16:25 +00:00
policy_capabilities
port_contexts
postinstall.te Use postinstall file_contexts 2021-03-24 17:00:35 -07:00
postinstall_dexopt.te Add support for invoking derive_classpath from otadexopt 2021-04-27 14:31:54 -07:00
ppp.te
preloads_copy.te Ignore the denial when system_other is erased 2020-03-31 20:10:26 +08:00
preopt2cachename.te
priv_app.te Allow priv_app to run the renderscript compiler. 2021-06-15 09:51:05 -07:00
profcollectd.te Add permissions in profcollectd to parse kernel etm data. 2021-04-08 16:03:59 -07:00
profman.te
property.te Allow mediaserver start transcoding service. 2021-05-17 13:52:38 -07:00
property_contexts Add camera2 extension property policies 2021-06-18 23:59:41 +00:00
racoon.te
radio.te Remove exported3_radio_prop 2020-08-03 09:23:39 +00:00
recovery.te Allow snapuserd interaction in recovery and fastbootd. 2021-02-04 22:48:55 -08:00
recovery_persist.te
recovery_refresh.te
remote_prov_app.te Allow remote_prov_app to find app_api_service 2021-03-23 14:00:28 -07:00
roles_decl
rs.te Allow priv_app to run the renderscript compiler. 2021-06-15 09:51:05 -07:00
rss_hwm_reset.te
runas.te
runas_app.te perf_event: rules for system and simpleperf domain 2020-01-15 16:56:41 +00:00
sdcardd.te
seapp_contexts Revert "priv_app: use per-app selinux contexts" 2021-06-07 14:28:34 +02:00
secure_element.te
security_classes Add SELinux policy for using userfaultfd 2021-03-17 04:57:22 -07:00
service.te Configure sepolicy for TracingServiceProxy 2021-02-05 11:04:11 -08:00
service_contexts [Sepolicy] Change sepolicy name back to formal name. 2021-06-10 11:02:27 +00:00
servicemanager.te
sgdisk.te
shared_relro.te Make shared_relro policy private. 2021-01-05 09:48:10 +00:00
shell.te Merge "Allow shell to read /vendor/apex/*" 2021-06-14 13:20:30 +00:00
simpleperf.te perf_event: rules for system and simpleperf domain 2020-01-15 16:56:41 +00:00
simpleperf_app_runner.te
slideshow.te
snapshotctl.te snapshotctl: allow to write stats 2020-02-14 20:51:53 +00:00
snapuserd.te Add a kernel transition to snapuserd. 2020-12-14 23:48:08 -08:00
stats.te Enable pull metrics from keystore 2021-04-13 22:45:01 +00:00
statsd.te Selinux changes for statsd flags 2020-11-17 19:28:41 -08:00
storaged.te Revert "Revert "Add neverallows for debugfs access"" 2021-05-04 22:06:46 -07:00
su.te Permissions for odrefresh and /data/misc/apexdata/com.android.art 2021-01-13 10:38:22 +00:00
surfaceflinger.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
system_app.te sepolicy: add perfetto_producer for platform_app and system_app 2021-06-10 13:16:25 +00:00
system_server.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00
system_server_startup.te Allow system_server_startup to read ART config 2021-06-03 08:17:21 -07:00
system_suspend.te sepolicy: Create new attribute to serve ISuspendControlServiceInternal 2021-02-25 18:04:04 +08:00
technical_debt.cil Use attributes for exclusive property owners 2020-11-30 18:34:30 +09:00
tombstoned.te Fix broken neverallow rules 2021-03-10 10:44:22 +09:00
toolbox.te Allow init to clear VirtualizationService data directory. 2021-06-02 14:05:28 +00:00
traced.te traced: move traced_tmpfs to public policy 2021-04-14 22:18:41 +02:00
traced_perf.te traced_perf: allow RO tracefs access + fix neverallow 2021-01-31 16:44:00 +00:00
traced_probes.te sepolicy: allow traced_probes to access statsd socket 2021-04-30 12:16:04 +01:00
traceur_app.te Cleanup mechanism for enabling perfetto daemon. 2020-06-01 11:56:03 -07:00
tzdatacheck.te
ueventd.te Move system property rules to private 2020-03-18 16:46:04 +00:00
uncrypt.te Move system property rules to private 2020-03-18 16:46:04 +00:00
untrusted_app.te reland: untrusted_app_29: add new targetSdk domain 2020-01-22 09:47:53 +00:00
untrusted_app_25.te Enforce RTM_GETLINK restrictions on all apps 2021-04-30 15:48:09 +02:00
untrusted_app_27.te Enforce RTM_GETLINK restrictions on all apps 2021-04-30 15:48:09 +02:00
untrusted_app_29.te Enforce RTM_GETLINK restrictions on all apps 2021-04-30 15:48:09 +02:00
untrusted_app_all.te Allow appdomain sepolicy search access to /mnt/media_rw 2021-04-13 14:56:44 +00:00
update_engine.te Allow update_engine to communicate with apexd 2021-02-19 13:21:51 +00:00
update_engine_common.te Use postinstall file_contexts 2021-03-24 17:00:35 -07:00
update_verifier.te Move system property rules to private 2020-03-18 16:46:04 +00:00
usbd.te Move system property rules to private 2020-03-18 16:46:04 +00:00
users
vdc.te
vendor_init.te Add crosvm domain and give virtmanager and crosvm necessary permissions. 2021-04-13 09:30:20 +00:00
viewcompiler.te
virtual_touchpad.te
virtualizationservice.te Rename VirtManager to VirtualizationService. 2021-05-21 14:47:30 +00:00
vold.te Fix permissions for vold.post_fs_data_done 2021-04-26 12:43:05 -07:00
vold_prepare_subdirs.te Allow the appsearch apex access to the apexdata misc_ce dir. 2021-05-26 09:47:19 -07:00
vr_hwc.te
vzwomatrigger_app.te Don't run vzwomatrigger_app in permissive mode 2019-12-02 09:41:54 -08:00
wait_for_keymaster.te Remove wait_for_keymaster and references 2021-06-17 11:12:16 -07:00
watchdogd.te
webview_zygote.te Enable ART properties modularization 2021-06-01 16:14:55 -07:00
wificond.te Add wifi_hal_prop and remove exported_wifi_prop 2020-07-17 17:38:13 +09:00
wpantund.te
zygote.te Add fusefs_type for FUSE filesystems 2021-06-28 13:18:46 +02:00