All of lore.kernel.org
 help / color / mirror / Atom feed
* Enable listing fcontexts.homedirs
@ 2017-09-27  8:16 Vit Mojzis
  2017-09-27  8:16 ` [PATCH 1/2] libsemanage: Add support for listing fcontext.homedirs file Vit Mojzis
  2017-09-27  8:16 ` [PATCH 2/2] python/semanage: Enable listing fcontexts.homedirs Vit Mojzis
  0 siblings, 2 replies; 21+ messages in thread
From: Vit Mojzis @ 2017-09-27  8:16 UTC (permalink / raw)
  To: selinux

"semanage fcontext -l" so far ignored content of file_contexts.homedirs
file which is confusing to users (more specific rules may be ignored in
favor of rules unseen to the user since file_contexts.homedirs has
higher priority than file_contexts).

These patches introduce the content of file_contexts.homedirs into 
the listing.

I am still unsure if it would not be better to list each file
separately (ideally in the order in which they are evaluated by
"restorecon").

 libsemanage/include/semanage/fcontexts_policy.h |  4 ++++
 libsemanage/src/direct_api.c                    |  6 ++++++
 libsemanage/src/fcontexts_policy.c              |  8 ++++++++
 libsemanage/src/handle.h                        | 19 +++++++++++++------
 python/semanage/seobject.py                     |  5 +++++
 5 files changed, 36 insertions(+), 6 deletions(-)

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-10-06 15:32 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-27  8:16 Enable listing fcontexts.homedirs Vit Mojzis
2017-09-27  8:16 ` [PATCH 1/2] libsemanage: Add support for listing fcontext.homedirs file Vit Mojzis
2017-09-27 17:04   ` William Roberts
2017-10-01 15:43     ` Vit Mojzis
2017-10-01 18:15       ` William Roberts
2017-09-27 17:42   ` Stephen Smalley
2017-09-27 18:17     ` Stephen Smalley
2017-10-01 18:01       ` [PATCH 1/3] libsemanage: Keep copy of file_contexts.homedirs in policy store Vit Mojzis
2017-10-01 18:01         ` [PATCH 2/3] libsemanage: Add support for listing fcontext.homedirs file Vit Mojzis
2017-10-02 19:07           ` Stephen Smalley
2017-10-03  9:57             ` [PATCH] " Vit Mojzis
2017-10-04 14:07               ` Stephen Smalley
2017-10-04 14:54                 ` Vit Mojzis
2017-10-04 15:36                   ` [PATCH 1/3] libsemanage: Keep copy of file_contexts.homedirs in policy store Vit Mojzis
2017-10-04 15:36                     ` [PATCH 2/3] libsemanage: Add support for listing fcontext.homedirs file Vit Mojzis
2017-10-04 15:36                     ` [PATCH 3/3] python/semanage: Enable listing file_contexts.homedirs Vit Mojzis
2017-10-04 20:24                       ` Stephen Smalley
2017-10-06 15:32                       ` Stephen Smalley
2017-10-01 18:01         ` Vit Mojzis
2017-09-27  8:16 ` [PATCH 2/2] python/semanage: Enable listing fcontexts.homedirs Vit Mojzis
2017-09-27 17:42   ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.