* Backtrace in sandbox command
@ 2016-11-01 21:22 Laurent Bigonville
0 siblings, 0 replies; only message in thread
From: Laurent Bigonville @ 2016-11-01 21:22 UTC (permalink / raw)
To: selinux
Hi,
I get the following backtrace in sandbox because there are no types
marked with the "sandbox_type" attribute in my test policy:
Traceback (most recent call last):
File "/usr/bin/sandbox", line 529, in <module>
rc = sandbox.main()
File "/usr/bin/sandbox", line 513, in main
self.__parse_options()
File "/usr/bin/sandbox", line 308, in __parse_options
""") % "\n\t".join(list(sepolicy.info(sepolicy.ATTRIBUTE, "sandbox_type"))[0]['types'])
IndexError: list index out of range
It seems that sepolicy.info() is not returning a RuntimeError exception
if there are not types returned.
There is a 2nd call to sepolicy.info() later in the code where the same
exception is catch.
In both cases, sepolicy.info() is returning an iterator. Has anything
changed in sepolicy behavior here?
Laurent Bigonville
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-01 21:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-01 21:22 Backtrace in sandbox command Laurent Bigonville
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.