[PATCH] --secontext: Implement displaying of expected context upon mismatch
Renaud Métrich
rmetrich at redhat.com
Mon Jan 3 19:24:37 UTC 2022
Right, it's because I'm expecting the contexts to work in the test to
make sure detection happens ...
Sorry for all this mess. I spawned a new Fedora with SELinux installed
but disabled to check all this, and another Fedora with SELinux not
installed at all.
On 1/3/22 17:18, Dmitry V. Levin wrote:
> On Mon, Jan 03, 2022 at 05:02:30PM +0100, Renaud Métrich wrote:
>> OK fixing this then to just avoid checking anything.
>>
>> @@ -190,10 +190,10 @@ char *
>> secontext_full_file(const char *filename, bool mismatch)
>> {
>> char *context = raw_secontext_full_file(filename);
>> - if (mismatch) {
>> + if (context && mismatch) {
> No, this apparently makes linkat--secontext_mismatch.gen and
> linkat--secontext_full_mismatch.gen fail instead of skipping on systems
> where selinux is not enabled.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-displaying-of-expected-context-upon-mismat.patch
Type: text/x-patch
Size: 37441 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220103/4cf6158e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220103/4cf6158e/attachment-0001.bin>
More information about the Strace-devel
mailing list