2008-07-02 21:22:58 +00:00
|
|
|
diff --exclude-from=exclude --exclude=sepolgen-1.0.12 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/Makefile policycoreutils-2.0.52/Makefile
|
|
|
|
--- nsapolicycoreutils/Makefile 2008-06-12 23:25:24.000000000 -0400
|
|
|
|
+++ policycoreutils-2.0.52/Makefile 2008-07-02 13:43:21.000000000 -0400
|
2006-11-14 16:03:27 +00:00
|
|
|
@@ -1,4 +1,4 @@
|
2007-12-19 17:55:58 +00:00
|
|
|
-SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po
|
|
|
|
+SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po gui
|
2006-11-14 16:03:27 +00:00
|
|
|
|
2007-12-19 17:55:58 +00:00
|
|
|
INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
|
|
|
|
|
2008-07-02 21:22:58 +00:00
|
|
|
diff --exclude-from=exclude --exclude=sepolgen-1.0.12 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/restorecond/restorecond.c policycoreutils-2.0.52/restorecond/restorecond.c
|
|
|
|
--- nsapolicycoreutils/restorecond/restorecond.c 2008-06-12 23:25:21.000000000 -0400
|
|
|
|
+++ policycoreutils-2.0.52/restorecond/restorecond.c 2008-07-02 13:43:21.000000000 -0400
|
2006-11-29 17:48:22 +00:00
|
|
|
@@ -210,9 +210,10 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fsetfilecon(fd, scontext) < 0) {
|
|
|
|
- syslog(LOG_ERR,
|
|
|
|
- "set context %s->%s failed:'%s'\n",
|
|
|
|
- filename, scontext, strerror(errno));
|
|
|
|
+ if (errno != EOPNOTSUPP)
|
|
|
|
+ syslog(LOG_ERR,
|
|
|
|
+ "set context %s->%s failed:'%s'\n",
|
|
|
|
+ filename, scontext, strerror(errno));
|
|
|
|
if (retcontext >= 0)
|
|
|
|
free(prev_context);
|
|
|
|
free(scontext);
|
|
|
|
@@ -225,8 +226,9 @@
|
|
|
|
if (retcontext >= 0)
|
|
|
|
free(prev_context);
|
|
|
|
} else {
|
|
|
|
- syslog(LOG_ERR, "get context on %s failed: '%s'\n",
|
|
|
|
- filename, strerror(errno));
|
|
|
|
+ if (errno != EOPNOTSUPP)
|
|
|
|
+ syslog(LOG_ERR, "get context on %s failed: '%s'\n",
|
|
|
|
+ filename, strerror(errno));
|
|
|
|
}
|
|
|
|
free(scontext);
|
|
|
|
close(fd);
|
2008-07-02 21:22:58 +00:00
|
|
|
diff --exclude-from=exclude --exclude=sepolgen-1.0.12 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-2.0.52/semanage/semanage
|
|
|
|
--- nsapolicycoreutils/semanage/semanage 2008-07-02 17:19:15.000000000 -0400
|
|
|
|
+++ policycoreutils-2.0.52/semanage/semanage 2008-07-02 13:43:21.000000000 -0400
|
|
|
|
@@ -297,9 +297,10 @@
|
|
|
|
if object == "user":
|
|
|
|
rlist = roles.split()
|
|
|
|
if len(rlist) == 0:
|
|
|
|
- raise ValueError(_("You must specify a role"))
|
|
|
|
- if prefix == "":
|
|
|
|
- raise ValueError(_("You must specify a prefix"))
|
|
|
|
+ raise ValueError(_("You must specify a role"))
|
|
|
|
+ if prefix == "":
|
|
|
|
+ prefix = "user"
|
|
|
|
+
|
|
|
|
OBJECT.add(target, rlist, selevel, serange, prefix)
|
2008-06-12 18:35:22 +00:00
|
|
|
|
2008-07-02 21:22:58 +00:00
|
|
|
if object == "port":
|
|
|
|
diff --exclude-from=exclude --exclude=sepolgen-1.0.12 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/semanage/semanage.8 policycoreutils-2.0.52/semanage/semanage.8
|
|
|
|
--- nsapolicycoreutils/semanage/semanage.8 2008-07-02 17:19:15.000000000 -0400
|
|
|
|
+++ policycoreutils-2.0.52/semanage/semanage.8 2008-07-02 13:43:21.000000000 -0400
|
2008-07-02 00:52:32 +00:00
|
|
|
@@ -3,7 +3,7 @@
|
|
|
|
semanage \- SELinux Policy Management tool
|
|
|
|
|
|
|
|
.SH "SYNOPSIS"
|
|
|
|
-.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|lC|D} [\-n]
|
|
|
|
+.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|D} [\-n] [\-S store]
|
|
|
|
.br
|
|
|
|
.B semanage boolean \-{d|m} [\-\-on|\-\-off|\-1|\-0] boolean
|
|
|
|
.br
|
2008-07-02 21:22:58 +00:00
|
|
|
@@ -87,6 +87,9 @@
|
2008-07-02 00:52:32 +00:00
|
|
|
.I \-s, \-\-seuser
|
|
|
|
SELinux user name
|
|
|
|
.TP
|
|
|
|
+.I \-S, \-\-store
|
|
|
|
+Select and alternate SELinux store to manage
|
|
|
|
+.TP
|
|
|
|
.I \-t, \-\-type
|
|
|
|
SELinux Type for the object
|
|
|
|
.TP
|