From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage SELinux for NFS services

Manage SELinux for NFS services

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Manage SELinux for NFS services

- SELinux, the mandatory access control system in enterprise Linux seven has controls that limit or grant access to all services including NFS. Let's take a look at some of the bullions and security contexts that relate to NFS. You will want to be logged in to rrhost1 with the terminal open. Before we begin, we need to start the NFS service if it is not running. In a terminal, type in sudo, space, systemctl, space, start, space, nfs-server and hit enter. Type in your password if prompted. Make it persistent by bringing your line back, and change start to enable, and hit enter again. Now, let's take a look at the security context of the running processes. Type in clear, and then type in ps, space, dash, e, capital z, space, pipe, space, egrep, space, single quote, nfs, pipe, rpc, single quote. This will look for lines that include either nfs or rpc in the output of ps. We can see that the security context of rpcbind is rpcbind_t, and the context of nfsd is kernel_t. Now let's take a…

Contents