From 34d8165edd18f738d3d76a7d338b2bb950278374 Mon Sep 17 00:00:00 2001 From: Joshua Brindle Date: Tue, 16 Jul 2013 22:10:12 -0400 Subject: [PATCH] add permissive domain to README --- README.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 1cb7f0adc..cf1a1d594 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,6 @@ Injects allow rules into binary SELinux kernel policies +Injecting a rule: $ ./sepolicy-inject -s shell -t system -c file -p read -P sepolicy -o sepolicy2 libsepol.policydb_index_others: security: 1 users, 2 roles, 518 types, 14 bools libsepol.policydb_index_others: security: 1 sens, 1024 cats @@ -14,11 +15,19 @@ Found 2 semantic av rules: allow shell system : file read ; allow appdomain domain : file { ioctl read getattr lock open } ; +Injecting a permissive domain: +$ ./sepolicy-inject -Z shell -P sepolicy -o sepolicy2 + +$ seinfo sepolicy | grep Permissive + Permissives: 0 Polcap: 2 + +$ seinfo sepolicy2 | grep Permissive + Permissives: 1 Polcap: 2 + TODO: Insert multiple rules at the same time Remove rules Use attributes -Add permissive domains