
CGroup: /system.slice/ssh.service
└─908 /usr/sbin/sshd -D
If checking the ssh server status fails, restart the ssh server using the command below:
$ systemctl restart ssh
5. Check the http server:
$ systemctl status apache2
└─apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/
apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Thu 2016-02-11 16:30:39 UTC; 2min 3s ago Docs: man:systemd-sysv-
generator(8)
Process: 3975 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE CGroup: /
system.slice/apache2.service
├─3990 /usr/sbin/apache2 -k start
├─3993 /usr/sbin/apache2 -k start
└─3994 /usr/sbin/apache2 -k start
If checking the apache2 status fails, restart apache2 service:
$ systemctl restart apache2
6. Add the user test1: Add a linux user named test1. Specify password for test1 and other configurations can be defaultMap
root to sysadm_u.
$ adduser test1
Adding user `test1' ...
Adding new group `test1' (1001) ...
Adding new user `test1' (1001) with group `test1' ... Creating home directory `/home/test1' ...
Copying files from `/etc/skel' ... Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully Changing the user information for test1
Enter the new value, or press ENTER for the default Full Name []:
Room Number []: Work Phone []: Home Phone []: Other []:
Is the information correct? [Y/n] y
4.7.1.4 Demo 1: local access control
This demo shows how SELinux protects a local file. The process cannot access local files if it is unauthorized.
Example 1: Denying a process from reading a wrong file type
In this example, a vi process created by user with uid: test1, acts as a subject to access a common file, which has a DAC
permission of 777.
NXP Semiconductors
Industrial features
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
61 / 199