Skip to contentSkip to conversation

policycoreutils patch

PATCH Daniel J Walsh 3 participants 5 messages Apr 26, 2007 – Apr 27, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

This patch moves audit2why to /usr/bin to match audit2allow, since both can be used from userspace. Also moves sepolgen-ifget to /usr/sbin, since this is not to be run by normal users.

audit2allow/Makefile +2 -1
diff --exclude-from=exclude --exclude=sepolgen-1.0.8 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/audit2allow/Makefile policycoreutils-2.0.10/audit2allow/Makefile
@@ -1,6 +1,7 @@
 # Installation directories.
 PREFIX ?= ${DESTDIR}/usr
 BINDIR ?= $(PREFIX)/bin
+SBINDIR ?= $(PREFIX)/sbin
 LIBDIR ?= $(PREFIX)/lib
 MANDIR ?= $(PREFIX)/share/man
 LOCALEDIR ?= /usr/share/locale
@@ -10,7 +11,7 @@
 install: all
 	-mkdir -p $(BINDIR)
 	install -m 755 audit2allow $(BINDIR)
-	install -m 755 sepolgen-ifgen $(BINDIR)
+	install -m 755 sepolgen-ifgen $(SBINDIR)
 	-mkdir -p $(MANDIR)/man1
 	install -m 644 audit2allow.1 $(MANDIR)/man1/
 
audit2why/Makefile +1 -1
diff --exclude-from=exclude --exclude=sepolgen-1.0.8 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/audit2why/Makefile policycoreutils-2.0.10/audit2why/Makefile
@@ -1,6 +1,6 @@
 # Installation directories.
 PREFIX ?= ${DESTDIR}/usr
-BINDIR ?= $(PREFIX)/sbin
+BINDIR ?= $(PREFIX)/bin
 LIBDIR ?= ${PREFIX}/lib
 MANDIR ?= $(PREFIX)/share/man
 LOCALEDIR ?= /usr/share/locale
#1 lore raw
Quoted 4 lines · Daniel J Walsh

This patch moves audit2why to /usr/bin to match audit2allow, since both can be used from userspace. Also moves sepolgen-ifget to /usr/sbin, since this is not to be run by normal users.

sepolgen-ifgen can be run by a normal user and the output saved to an arbitrary file. audit2allow also has flags for reading the interface information from a non-default flag. So I think it should stay in /usr/bin.

I merged the audit2why change to trunk, stable, and policyrep.

Karl

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
Quoted 8 lines · Karl MacMillan
Quoted 5 lines · Daniel J Walsh

This patch moves audit2why to /usr/bin to match audit2allow, since both can be used from userspace. Also moves sepolgen-ifget to /usr/sbin, since this is not to be run by normal users.

Quoted 11 lines

sepolgen-ifgen can be run by a normal user and the output saved to an arbitrary file. audit2allow also has flags for reading the interface information from a non-default flag. So I think it should stay in /usr/bin.

I merged the audit2why change to trunk, stable, and policyrep.

Karl

I guess the argument would be just because it can be run by a normal user, should it be placed in /usr/bin? I look at apps that are almost never run by normal users and tend to put them in /usr/sbin. But overall I don't really care. The only problem is that I have selinux-policy-devel package executes it in /usr/sbin. So moving it back to /usr/bin would be a hassle.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 14 lines · Daniel J Walsh
Quoted 13 lines · Karl MacMillan
Quoted 5 lines · Daniel J Walsh

This patch moves audit2why to /usr/bin to match audit2allow, since both can be used from userspace. Also moves sepolgen-ifget to /usr/sbin, since this is not to be run by normal users.

sepolgen-ifgen can be run by a normal user and the output saved to an arbitrary file. audit2allow also has flags for reading the interface information from a non-default flag. So I think it should stay in /usr/bin.

Quoted 8 lines
Quoted 6 lines

I merged the audit2why change to trunk, stable, and policyrep.

Karl

I guess the argument would be just because it can be run by a normal user, should it be placed in /usr/bin?

That was my thinking.

Quoted 5 lines

I look at apps that are almost
never run by normal users and tend to put them in /usr/sbin. But overall I don't really care. The only problem is that I have
selinux-policy-devel package executes it in /usr/sbin. So moving it
back to /usr/bin would be a hassle.

I don't really care - anyone else have an opinion? Otherwise I can merge the move to sbin.

Karl

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw
Quoted 26 lines · Karl MacMillan
Quoted 14 lines · Daniel J Walsh
Quoted 13 lines · Karl MacMillan
Quoted 5 lines · Daniel J Walsh

This patch moves audit2why to /usr/bin to match audit2allow, since both can be used from userspace. Also moves sepolgen-ifget to /usr/sbin, since this is not to be run by normal users.

sepolgen-ifgen can be run by a normal user and the output saved to an arbitrary file. audit2allow also has flags for reading the interface information from a non-default flag. So I think it should stay in /usr/bin.

Quoted 8 lines
Quoted 6 lines

I merged the audit2why change to trunk, stable, and policyrep.

Karl

I guess the argument would be just because it can be run by a normal user, should it be placed in /usr/bin?

That was my thinking.

Quoted 8 lines
Quoted 5 lines

I look at apps that are almost
never run by normal users and tend to put them in /usr/sbin. But overall I don't really care. The only problem is that I have
selinux-policy-devel package executes it in /usr/sbin. So moving it
back to /usr/bin would be a hassle.

I don't really care - anyone else have an opinion? Otherwise I can merge the move to sbin.

I have no strong opinion, but I think moving things around unnecessarily leads to confusion and breakage and should be avoided. And that these kinds of changes should not be made in the Fedora packages _before_ being accepted upstream.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.