Skip to contentSkip to conversation

Step 19 of install

DISCUSSION Christopher Carney 3 participants 3 messages May 8, 2003 – May 9, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

I got threw the install and I ran make relabel. Now I am not sure where my path for modified utilities is. I am trying to follow step 19 but don't know how.
19) Add /usr/local/selinux/bin and /usr/local/selinux/sbin
to your path for the modified utilities.

Thanks,

Chris

#1 lore raw
Quoted 5 lines · Christopher Carney

I got threw the install and I ran make relabel. Now I am not sure where my path for modified utilities is. I am trying to follow step 19 but don't know how.
19) Add /usr/local/selinux/bin and /usr/local/selinux/sbin to your path for the modified utilities.

For RedHat, edit /etc/profile and add the directories to the "pathmunge" lists:

# Path manipulation
if [ id -u = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/bin
pathmunge /usr/local/sbin
pathmunge /usr/local/selinux/sbin
fi

pathmunge /usr/X11R6/bin after
pathmunge /usr/local/bin
pathmunge /usr/local/selinux/bin

... also you will probably want to add the SELinux man directory to MANPATH, by editing /etc/man.config and adding:

MANPATH /usr/local/selinux/man

BEFORE the usual system MANPATHs so that your man command will pickup the SELinux man pages before the non-SE system ones.

I'll add this stuff to my FAQ ( http://www.crypt.gen.nz/selinux/faq.html ) in the next update.

Kerry

--
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

Am Donnerstag, 8. Mai 2003 23:26 schrieb Kerry Thompson:

Quoted 24 lines
Quoted 5 lines · Christopher Carney

I got threw the install and I ran make relabel. Now I am not sure where my path for modified utilities is. I am trying to follow step 19 but don't know how.
19) Add /usr/local/selinux/bin and /usr/local/selinux/sbin to your path for the modified utilities.

For RedHat, edit /etc/profile and add the directories to the "pathmunge" lists:

# Path manipulation
if [ id -u = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/bin
pathmunge /usr/local/sbin
pathmunge /usr/local/selinux/sbin
fi

pathmunge /usr/X11R6/bin after
pathmunge /usr/local/bin
pathmunge /usr/local/selinux/bin

Quoted 7 lines

... also you will probably want to add the SELinux man directory to MANPATH, by editing /etc/man.config and adding:

MANPATH /usr/local/selinux/man

BEFORE the usual system MANPATHs so that your man command will pickup the SELinux man pages before the non-SE system ones.

An other possibility is to copy the attached script to /etc/profile.d and you don't need to edit your config files :-)
On my SuSE /etc/profile looks in /etc/profile.d and starts all shell scripts inside this directory. I'm not sure, but on RedHat it should run also.

Carsten