You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write policy using cil.
When I write a filecon in a macro and use macro parameter as file_path it generate unexpected.
For example, my macro like this and expected "/usr/bin -d system_u:object_r:mytype_t:s0"
and result is
My libselinux and secilc version is 33 (3.3). Is this behavior normal?
The text was updated successfully, but these errors were encountered:
It is working as expected. Not to say that it couldn't be improved.
We wanted to pass objects in CIL, not strings. We definitely did not want all the string mangling that occurs with arguments in the Reference policy.
A name object was specifically added to allow a filename to be passed into a function for filename type transition rules.
The name object could be generalized to a string object and filecon rules could then resolve the path string, but that work just has never been done.
I'm trying to write policy using cil.
When I write a filecon in a macro and use macro parameter as file_path it generate unexpected.
For example, my macro like this and expected "/usr/bin -d system_u:object_r:mytype_t:s0"
and result is
My libselinux and secilc version is 33 (3.3). Is this behavior normal?
The text was updated successfully, but these errors were encountered: