From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

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

NFS and SELinux

NFS and SELinux

- [Instructor] SELinux, the mandatory access control system in Enterprise Linux 7, has controls that limit or grant access to all services including NFS. Let's take a look at some of the Booleans and security contexts that relate to NFS. You will want to be logged in to RHS1 with a 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, lets 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 rpc bind is rpcbind_t, and the context of nsfd is kernel_t. Now let's take a look at the nfs…

Contents