Control SELinux Port Labeling Flashcards

1
Q

What command is used to restart the httpd.service?

A

systemctl restart httpd.service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command is used to list the status of the httpd service?

A

systemctl status -l httpd.service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command is used to verify whether the SELinux is blocking httpd from bindinf to the 82/TCP port?

A

sealert -a /var/log/audit/audit.log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command is used to list the appropriate port types for the 82/TCP port?

A

semange port -l | grep http

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command is used to assign the 82/TCP port the http_port_t type?

A

semanage port -a -t http_port_t -p tcp 82

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command is used restart the httpd.service?

A

systemctl restart httpd.service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What command is used to verify that you can now access the web server that runs on the 82/TCP port?

A

curl http:/servera.lab.example.com:82

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What command can you use to open the 82/TCP port in the permanent configuration, for the default zone on the firewall?

A

firewall-cmd –permanent –add-port=82/tcp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command is used to activate the firewalls changes?

A

firewall-cmd –reload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly