diff options
author | Hyotaek Shim <hyotaek.shim@samsung.com> | 2018-09-19 19:23:03 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2018-10-01 14:55:12 +0900 |
commit | da39bbe42ffe3ad83032c284b48841159406f1b1 (patch) | |
tree | 994fa6750ab59cfbd1e74f5d8af7fea953083f74 | |
parent | 4ec03906b38efe0a5570956c083bb55a51f3d70f (diff) | |
download | device-mapper-accepted/tizen_7.0_unified_hotfix.tar.gz device-mapper-accepted/tizen_7.0_unified_hotfix.tar.bz2 device-mapper-accepted/tizen_7.0_unified_hotfix.zip |
Set the smack label of /dev/mapper and /dev/mapper/control as '*'tizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.163301submit/tizen_6.0_hotfix/20201103.115101submit/tizen_6.0_hotfix/20201102.192901submit/tizen_6.0/20201029.205501submit/tizen_5.5_wearable_hotfix/20201026.184306submit/tizen_5.5_mobile_hotfix/20201026.185106submit/tizen_5.5/20191031.000006submit/tizen_5.0/20181101.000006submit/tizen/20181001.084812accepted/tizen/unified/20181001.150941accepted/tizen/7.0/unified/hotfix/20221116.110710accepted/tizen/7.0/unified/20221110.063703accepted/tizen/6.5/unified/20211028.224215accepted/tizen/6.0/unified/hotfix/20201103.000531accepted/tizen/5.5/unified/wearable/hotfix/20201027.103137accepted/tizen/5.5/unified/mobile/hotfix/20201027.063321accepted/tizen/5.5/unified/20191031.010142accepted/tizen/5.0/unified/20181102.025336tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
Normally, /dev/mapper and /dev/mapper/control are created by the in-kernel dm driver
and the smack label is set by Systemd as '*'.
When the dm driver is loaded as a module (dm-mod.ko), however,
/dev/mapper's label cannot be initialized by Systemd.
drwxr-xr-x root root * /dev/mapper
crw------- root root * /dev/mapper/control
Change-Id: I74f7b58cbfb80294bb19bd5cff683359d26c1b22
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rw-r--r-- | udev/10-dm.rules.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/10-dm.rules.in b/udev/10-dm.rules.in index 29af467..943afa6 100644 --- a/udev/10-dm.rules.in +++ b/udev/10-dm.rules.in @@ -14,8 +14,7 @@ # DM_SUSPENDED - suspended state of DM device (0 or 1) # DM_UDEV_RULES_VSN - DM udev rules version -KERNEL=="device-mapper", NAME="(DM_DIR)/control" - +KERNEL=="device-mapper", NAME="(DM_DIR)/control", SECLABEL{smack}="*", RUN+="/bin/chsmack -a * /dev/mapper" SUBSYSTEM!="block", GOTO="dm_end" KERNEL!="dm-[0-9]*", GOTO="dm_end" (DM_EXEC_RULE) |