SELinux Flashcards

1
Q

DAC stands for

A

Discretionary Access Control
( . traditional way of protecting our files and folders
.managed by the owners and their permissions, ls -l to see DAC permissions)

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

MAC stands for

A

Mandatory Access Control
. A higher level of access control than the standard DAC
.prevents security breaches in the system by only processing necessary files that the admin preapproves, ls -Z too see MAC permissions

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

SELinux

A

Security Enhanced Linux

Additional security feature of Linux on top of firewall
SElinux is a labeling system. Every process has a label. Every file/directory object in the operating system has a label. Even network ports, devices, and potentially hostnames have labels assigned to them.

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

selinux knows three modes

A

The enforcing mode will enforce policies, and may deny access based on selinux rules.
The permissive mode will not enforce policies, but can still log actions that would have been denied in enforcing mode.
The disabled mode disables selinux.

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

type command to know in what mode you are now

A

getenforce

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

in command line : setenforce 1 stands for

A

enforcing

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

in command line : setenforce 0 stands for

A

permissive

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

what is the configuration file for SELinux? tell about disabling mode

A

/etc/selinux/config only in this file you can disable selinux, not in command line

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

type command to set selinux, to change type for directory SUN , for example

A

semanage fcontext -a -t httpd_sys_content_t sun/
restorecon -R -v sun/
semanage port -a -t http_port-t -p tcp 90
semanage port -l | grep http

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