From 0f05840bf4c256b838eca8f1be9d7b5be82ccd0e Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 28 Mar 2013 15:38:35 -0400 Subject: Allow sepgsql labels to depend on object name. The main change here is to call security_compute_create_name_raw() rather than security_compute_create_raw(). This ups the minimum requirement for libselinux from 2.0.99 to 2.1.10, but it looks like most distributions will have picked that up before 9.3 is out. KaiGai Kohei --- contrib/sepgsql/uavc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/sepgsql/uavc.c') diff --git a/contrib/sepgsql/uavc.c b/contrib/sepgsql/uavc.c index 84839c4867b..4e67aa02d1f 100644 --- a/contrib/sepgsql/uavc.c +++ b/contrib/sepgsql/uavc.c @@ -250,10 +250,10 @@ sepgsql_avc_compute(const char *scontext, const char *tcontext, uint16 tclass) { if (!ucontext) ncontext = sepgsql_compute_create(scontext, tcontext, - SEPG_CLASS_PROCESS); + SEPG_CLASS_PROCESS, NULL); else ncontext = sepgsql_compute_create(scontext, ucontext, - SEPG_CLASS_PROCESS); + SEPG_CLASS_PROCESS, NULL); if (strcmp(scontext, ncontext) == 0) { pfree(ncontext); -- cgit v1.2.3