-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from pebenito/4.4
Backport fixes for 4.4.3.
- Loading branch information
Showing
16 changed files
with
127 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,16 +50,12 @@ Find differences in allow rules. | |
Find differences in auditallow rules. | ||
.IP "--dontaudit" | ||
Find differences in dontaudit rules. | ||
.IP "--neverallow" | ||
Find differences in neverallow rules. | ||
.IP "--allowxperm" | ||
Find differences in allowxperm rules. | ||
.IP "--auditallowxperm" | ||
Find differences in auditallowxperm rules. | ||
.IP "--dontauditxperm" | ||
Find differences in dontauditxperm rules. | ||
.IP "--neverallowxperm" | ||
Find differences in neverallowxperm rules. | ||
.IP "-T, --type_trans" | ||
Find differences in type_transition rules. | ||
.IP "--type_member" | ||
|
@@ -88,6 +84,10 @@ Find differences in validatetrans rules. | |
Find differences in mlsvalidatetrans rules. | ||
|
||
.SS Labeling Statement Differences | ||
.IP "--ibendportcon" | ||
Find differences in ibendportcon (InfiniBand endport context) statements. | ||
.IP "--ibpkeycon" | ||
Find differences in ibpkeycon (InfiniBand parition key context) statements. | ||
.IP "--initialsid" | ||
Find differences in initial SID statements. | ||
.IP "--fs_use" | ||
|
@@ -140,6 +140,14 @@ For example, a class is modified if one or more permissions are added or removed | |
.RE | ||
.PP | ||
|
||
.SH EXAMPLE | ||
.nf | ||
Show differences in boolean settings | ||
# sediff -b /backup/policy.33 /etc/selinux/targeted/policy/policy.33 | ||
Show statistics for allow and allowxperm rule changes (how many rules where added, removed, or modified) | ||
#sediff -A --stats /backup/policy.33 /etc/selinux/targeted/policy/policy.33 | ||
|
||
|
||
.SH AUTHOR | ||
Chris PeBenito <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,8 @@ Specify the maximum number of domain transitions to output. The default is unlim | |
A space-separated list of types to exclude from the analysis. | ||
|
||
.SS General Options | ||
.IP "--full" | ||
Print rule lists for transitions. | ||
.IP "--stats" | ||
Print domain transition graph statistics at the end of the analysis. | ||
.IP "-h, --help" | ||
|
@@ -60,6 +62,13 @@ Print additional informational messages. | |
.IP "--debug" | ||
Enable debugging output. | ||
|
||
.SH EXAMPLE | ||
.nf | ||
Show the shortest transition paths from httpd_t to unconfined_t, while not using container_runtime_t | ||
# sedta -s httpd_t -t unconfined_t -S container_runtime_t | ||
List all domain transition paths shorter than 3 steps from init_t to smbd_t | ||
# sedta -s init_t -t smbd_t -A 3 | ||
|
||
.SH AUTHOR | ||
Chris PeBenito <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,10 @@ There is no expanded information for this component. | |
.IP "--genfscon [FS_TYPE]" | ||
Print a list of genfscon statements or, if FS_TYPE is provided, print the statement for the named filesystem type. | ||
There is no expanded information for this component. | ||
.IP "--ibpkeycon [PKEY[-PKEY]]" | ||
Print a list of InfiniBand parition key contexts. | ||
.IP "--ibendportcon [NAME]" | ||
Print a list of InfiniBand endport contexts. | ||
.IP "--initialsid [NAME]" | ||
Print a list of initial SIDs or, if NAME is provided, print the named initial SID. | ||
With \fI-x\fR, print the context assigned to each displayed SID. | ||
|
@@ -86,6 +90,18 @@ There is no expanded information for this component. | |
.IP "--all" | ||
Print all components. | ||
|
||
.IP "\fB Xen Component Queries: \fR" | ||
.IP "--ioportcon" | ||
Print all ioportcon statements. | ||
.IP "--iomemcon" | ||
Print all iomemcon statements. | ||
.IP "--pcidevicecon" | ||
Print all pcidevicecon statements. | ||
.IP "--pirqcon" | ||
Print all pirqcon statements. | ||
.IP "--devicetreecon" | ||
Print all devicetreecon statements. | ||
|
||
.SH OPTIONS | ||
.IP "-x, --expand" | ||
Print additional details for each component matching the expression. | ||
|
@@ -101,6 +117,15 @@ Print additional informational messages. | |
.IP "--debug" | ||
Enable debugging output. | ||
|
||
.SH EXAMPLE | ||
.nf | ||
List aliases of and attributes assigned to type httpd_t | ||
# seinfo -t httpd_t -x | ||
List all executable types (all types assigned to "exec_type" attribute) | ||
# seinfo -a exec_type -x | ||
List all constrains and mlsconstrains for class "file" | ||
# seinfo --constrain file | ||
|
||
.SH AUTHOR | ||
Chris PeBenito <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,17 +50,28 @@ Specify the maximum number of information flows to output. The default is unlimi | |
A space-separated list of types to exclude from the analysis. | ||
|
||
.SS General Options | ||
.IP "-r, --reverse" | ||
Display information flows into the source type. No effect if a target type is specified. | ||
.IP "--stats" | ||
Print information flow graph statistics at the end of the analysis. | ||
.IP "-h, --help" | ||
Print help information and exit. | ||
.IP "--full" | ||
Print full rule lists for information flows. | ||
.IP "--version" | ||
Print version information and exit. | ||
.IP "-v, --verbose" | ||
Print additional informational messages. | ||
.IP "--debug" | ||
Enable debugging output. | ||
|
||
.SH EXAMPLE | ||
.nf | ||
Show the shortest paths for process running as httpd_t to access user home files, using the default permission map: | ||
# seinfoflow -s httpd_t -t user_home_t -S | ||
List all data paths shorter than 3 steps from smbd_t to httpd_log_t, when samba_enable_home_dirs and samba_create_home_dirs booleans are enabled | ||
# seinfoflow -s smbd_t -t user_home_t -A 3 -b "samba_enable_home_dirs:true,samba_create_home_dirs:true" | ||
|
||
.SH AUTHOR | ||
Chris PeBenito <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ Find type_change rules. | |
Find role allow rules. | ||
.IP "--role_trans" | ||
Find role_transition rules. | ||
.IP "Note: TE/MLS rule searches cannot be mixed with RBAC rule searches" | ||
|
||
.SS MLS Rule Types | ||
.IP "--range_trans" | ||
|
@@ -80,6 +81,8 @@ A matching rule must have the specified target attribute/type/role explicitly, i | |
A matching rule must have all specified Booleans, instead of matching any of the specified Boolean. | ||
.IP "-ep" | ||
A matching rule must have exactly the specified permissions, instead of matching any of the specified permission. | ||
.IP "-ex" | ||
A matching rule must have exactly the specified extended permissions, instead of matching any listed extended permission. | ||
.IP "-Sp" | ||
A matching rule must have permissions where are a superset of the specified permissions, instead of matching any of the permissions. | ||
.IP "-rs" | ||
|
@@ -103,6 +106,15 @@ Print additional informational messages. | |
.IP "--debug" | ||
Enable debugging output. | ||
|
||
.SH EXAMPLE | ||
.nf | ||
List allow (and allowxperm) rules for accessing files labeled container_file_t from domains with attribute container_domain | ||
# sesearch -A -s container_domain -t container_file_t -c file | ||
List allow and dontaudit rules for accessing chr_files labeled container_file_t, that are controlled by boolean container_use_devices | ||
# sesearch -A --dontaudit -t container_file_t -c chr_file -b container_use_devices | ||
List dontaudit rules assigned via application_domain_type attribute (rules concerning specific types with that attribute are excluded) | ||
# sesearch --dontaudit -s application_domain_type -ds | ||
|
||
.SH AUTHOR | ||
Chris PeBenito <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,7 @@ def run(self): | |
installed_data.append((join('share/man', lang, 'man1'), glob.glob(join("man", lang, "*.1")))) | ||
|
||
setup(name='setools', | ||
version='4.4.2', | ||
version='4.4.3', | ||
description='SELinux policy analysis tools.', | ||
author='Chris PeBenito', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters