OSDN Git Service

Ensure that app lib symlinks are correctly labeled when created.
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 13 May 2014 16:53:07 +0000 (12:53 -0400)
committerStephen Smalley <sds@tycho.nsa.gov>
Tue, 13 May 2014 16:59:40 +0000 (12:59 -0400)
commit3a98389263ea0bf9656bcc6869855099194f498c
tree46ba90a49b5ebd0cd544a86c141ab0481bd925a1
parentbd20e551f64234142e1146f9fa4b2dcebbd72122
Ensure that app lib symlinks are correctly labeled when created.

At present, the app lib symlinks are created before setting
the package directory security context, and therefore default
to system_data_file.  Upon a later restorecon_recursive,
they are relabeled to the same type as the package directory,
e.g. app_data_file.  Avoid this inconsistency by setting the
package directory security context before creating the symlink
so that it inherits the same security context.

Change-Id: I1ee6ccd8a2aa63a4d2efda67f313c97932235911
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
cmds/installd/commands.c