meta-selinux/recipes-core/udev
Wenzong Fan 77130536eb udev: restorecon /run to allow mdadm creating /run/mdadm
This change bases on the factors during bootup:

a. the default type for /run is var_run_t;
b. the type for /run will be changed to tmpfs_t after tmpfs mounted;
c. the type for /run will be fixed after populate-volatile.sh run.

udev service is started in b->c period, fix the type for /run from
udev init script to remove:

  avc: denied { write } for pid=294 comm="mdadm" \
  name="/" dev="tmpfs" ino=10581 \
  scontext=system_u:system_r:mdadm_t:s0-s15:c0.c1023 \
  tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-08-07 15:17:52 -04:00
..
udev udev: restorecon /run to allow mdadm creating /run/mdadm 2015-08-07 15:17:52 -04:00
udev_182.bbappend always force to restore file contexts in initscripts 2013-10-02 13:24:44 -04:00