Re: Fix alias handling in sepolicy and semaange

2018-10-18 Thread Vit Mojzis
Please ignore this patch set. I sent a new version (including sign-off 
and proper "Resolves") to vger.kernel.org.

Sorry for the noise.

On 16. 10. 18 10:25, Vit Mojzis wrote:

Sepolicy and semanage do not work with aliases properly (aliases are
mostly treated as invalid types). Fix this by determining corresponding
type when an alias is used and working with the type instead.

python/semanage/seobject.py  | 21 ++---
python/sepolicy/sepolicy.py  |  8 +++-
python/sepolicy/sepolicy/__init__.py | 22 ++
3 files changed, 31 insertions(+), 20 deletions(-)


___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.

___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.


Re: Fix alias handling in sepolicy and semaange

2018-10-16 Thread William Roberts
I'm really not that familiar with the Python code to review this at
the moment, perhaps Nicolas is?
On Tue, Oct 16, 2018 at 1:27 AM Vit Mojzis  wrote:
>
> Sepolicy and semanage do not work with aliases properly (aliases are
> mostly treated as invalid types). Fix this by determining corresponding
> type when an alias is used and working with the type instead.
>
> python/semanage/seobject.py  | 21 ++---
> python/sepolicy/sepolicy.py  |  8 +++-
> python/sepolicy/sepolicy/__init__.py | 22 ++
> 3 files changed, 31 insertions(+), 20 deletions(-)
>
>
> ___
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
> To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.
___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.


Fix alias handling in sepolicy and semaange

2018-10-16 Thread Vit Mojzis
Sepolicy and semanage do not work with aliases properly (aliases are 
mostly treated as invalid types). Fix this by determining corresponding
type when an alias is used and working with the type instead.

python/semanage/seobject.py  | 21 ++---
python/sepolicy/sepolicy.py  |  8 +++-
python/sepolicy/sepolicy/__init__.py | 22 ++
3 files changed, 31 insertions(+), 20 deletions(-)


___
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.