summaryrefslogtreecommitdiffstats
path: root/init/init.h
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2013-05-13 12:37:04 -0400
committerStephen Smalley <sds@tycho.nsa.gov>2013-08-23 08:35:43 -0400
commit8348d279c7ce1a2453965ba7f05a7b818d58886c (patch)
tree5bf50a8793a7ad5f6f0bd475c54a72f49c37f7a9 /init/init.h
parent5d8554323caddfa3ca02f31625ea72634312521f (diff)
downloadsystem_core-8348d279c7ce1a2453965ba7f05a7b818d58886c.zip
system_core-8348d279c7ce1a2453965ba7f05a7b818d58886c.tar.gz
system_core-8348d279c7ce1a2453965ba7f05a7b818d58886c.tar.bz2
Add support for socket security context specification.
Add an optional argument to the socket option for specifying a SELinux security context for the socket. Normally the socket security context is automatically computed from the service security context or set using the seclabel option, but this facility allows dealing with two scenarios that cannot be addressed using the existing mechanisms: 1) Use of logwrapper to wrap a service. In this case, init cannot determine the service security context as it does not directly execute it and we do not want logwrapper to run in the same domain as the service. 2) Situations where a service has multiple sockets and we want to label them distinctly. Change-Id: I7ae9088c326a2140e56a8044bfb21a91505aea11 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'init/init.h')
-rw-r--r--init/init.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init.h b/init/init.h
index aa6a4ab..3928d52 100644
--- a/init/init.h
+++ b/init/init.h
@@ -55,6 +55,7 @@ struct socketinfo {
uid_t uid;
gid_t gid;
int perm;
+ const char *socketcon;
};
struct svcenvinfo {