RHEL7: How to deploy SELinux man pages.

Share this link

By default, a lot of SELinux man pages are not available.
To get them, follow these steps.

Install the selinux-policy-devel package:

# yum install -y selinux-policy-devel

Note: I find the selinux-policy-devel package name easier to remember than the policycoreutils-devel name but both give the same result.

Update the man pages database:

# mandb

Display the list of the new available SELinux man pages:

# apropos _selinux

Source: Sander van Vugt’s SELinux SELinux video (15min).

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Leave a Reply

6 Comments on "RHEL7: How to deploy SELinux man pages."

Notify of
Sort by:   newest | oldest
jacques
Member
jacques

Just a little comment, you can skip this “sepolicy manpage” command, just run the mandb after the yum install and it is done.

PickledEggs
Member
PickledEggs

It doesn’t seem to work for me, if I don’t run the sepolicy manpage command after installing mandb doesn’t add the manpages. At least not on: Linux myserver1 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

kenrin
Member
kenrin

After you install the package and before running mandb you need to run “sepolicy manpage -a -p /usr/share/man/man8”

Sultan
Member
Sultan
On the latest update, there is probably a bug and “sepolicy manpage -a -p /usr/share/man/man8” gives following error. [root@server1 home]# sepolicy manpage -a -p /usr/share/man/man8 IOError: [Errno 2] No such file or directory: ‘//etc/selinux/targeted/contexts/files/file_contexts.local’ This error can easily be avoided by touching the missing file and run the same command again to generate manpages. [root@server1 home]# touch /etc/selinux/targeted/contexts/files/file_contexts.local [root@server1 home]# sepolicy manpage -a -p /usr/share/man/man8 /usr/share/man/man8/NetworkManager_selinux.8 /usr/share/man/man8/abrt_selinux.8 /usr/share/man/man8/abrt_dump_oops_selinux.8 /usr/share/man/man8/abrt_handle_event_selinux.8 /usr/share/man/man8/abrt_helper_selinux.8 … /usr/share/man/man8/zoneminder_selinux.8 /usr/share/man/man8/zoneminder_script_selinux.8 /usr/share/man/man8/zos_remote_selinux.8 [root@server1 home]# mandb Purging old database entries in /usr/share/man… Processing manual pages under /usr/share/man… Updating index cache for path `/usr/share/man/man8′. Wait…done. Checking for stray cats under… Read more »
wpDiscuz

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create a user called tom. Create a directory named /private. Use an acl to only allow access (rwx) to tom to the private directory.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a httpd virtual server called "dummy" with DocumentRoot assigned to /opt.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...