OwlCyberDefense / setools

setools has moved to https://github.com/SELinuxProject/setools
Other
91 stars 34 forks source link

seinfo --expand should count the results #177

Open ghost opened 7 years ago

ghost commented 7 years ago
# seinfo -xtuser.subj

Types: 1
   type user.subj,... users.unpriv_user.subj_type_attribute;

In the example above we already know the Types count is 1. Instead we want to know the Type Attributes count.

# seinfo -xasubj.subj_type_attribute

Type Attributes: 1
   attribute subj.subj_type_attribute;
        alsactl.subj
        ...

In the example above we already know the Type Attributes count is 1. Instead we want to know the Types count

ghost commented 7 years ago

Also why can the formatting for seinfo -xtuser.subj not be the same as for seinfo -xasubj.subj_type_attribute

The output of seinfo -xasubj.subj_type_attribute is much more readable and arguably parseable