OSDN Git Service

Label lost+found directories with SELinux security contexts.
authorStephen Smalley <sds@tycho.nsa.gov>
Fri, 25 Apr 2014 18:57:55 +0000 (14:57 -0400)
committerStephen Smalley <sds@tycho.nsa.gov>
Fri, 25 Apr 2014 19:03:10 +0000 (15:03 -0400)
commit7907ac7c811670643c3606125657a39226507ea1
treed8a736492daa9c273e45bcb5ca4465b7928ac6f3
parentfb109b894a5fc2891e49ec8e81c0dda171b45b7f
Label lost+found directories with SELinux security contexts.

When an asec image is generated, the lost+found directory has no
security.selinux attribute set and thus shows up as unlabeled.
We already handle this correctly when building images from existing
directories with files, so we just need to do it here as well when
generating an otherwise empty initial image.

Change-Id: I6d449dcc67a5cbc2101718e34ea0e184936d7f0e
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ext4_utils/make_ext4fs.c