Bug Report - "sepolicy manage"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To whom it may concern,

This is a bug report for file:
"selinux/policycoreutils/sepolicy/sepolicy/generate.py"
Lines: 218, 219, 232

The policy object "symbols" dictionary contains duplicate keys for
"openlog" and "pam_". The impact of this pattern can be observed later
when the gen_symbols method is called.

If openlog is a found symbol, I've observed that
"set_use_syslog(True)" is always used. The dictionary data structure
in python doesn't support duplicate keys and mutable, so the last
value parsed overwrites any previously set values.

As it is, "set_use_kerb_rcache", "set_use_kerberos" or "set_use_pam"
do not appear in the symbols dictionary, so they will never make it
into policy when gen_symbols checks the output of the binary symbol
table.

Python Dictionary References
https://docs.python.org/2/tutorial/datastructures.html#dictionaries
https://docs.python.org/3/tutorial/datastructures.html#dictionaries

Thanks,

Jordan
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux