* matchpathcon -V does not always work as expected.
@ 2008-09-30 12:54 Daniel J Walsh
2008-10-14 19:09 ` Joshua Brindle
0 siblings, 1 reply; 2+ messages in thread
From: Daniel J Walsh @ 2008-09-30 12:54 UTC (permalink / raw)
To: SE Linux
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
matchpathcon -V should be passing the mode when checking whether the
file context on a file is correct.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkjiIXoACgkQrlYvE4MpobPXJwCeOgcA2Zj05Mwdmqv0NGxyl3RZ
lr8AmwYglOU6ubFXO0r9jh1Z2v6cAO9u
=wk/a
-----END PGP SIGNATURE-----
[-- Attachment #2: libselinux-matchpathcon.patch --]
[-- Type: text/plain, Size: 660 bytes --]
diff --exclude-from=exclude -N -u -r nsalibselinux/utils/matchpathcon.c libselinux-2.0.71/utils/matchpathcon.c
--- nsalibselinux/utils/matchpathcon.c 2008-08-28 09:34:24.000000000 -0400
+++ libselinux-2.0.71/utils/matchpathcon.c 2008-09-26 10:21:43.000000000 -0400
@@ -106,12 +106,12 @@
if (verify) {
if (quiet) {
- if (selinux_file_context_verify(argv[i], 0))
+ if (selinux_file_context_verify(argv[i], mode))
continue;
else
exit(1);
}
- if (selinux_file_context_verify(argv[i], 0)) {
+ if (selinux_file_context_verify(argv[i], mode)) {
printf("%s verified.\n", argv[i]);
} else {
security_context_t con;
[-- Attachment #3: libselinux-matchpathcon.patch.sig --]
[-- Type: application/octet-stream, Size: 72 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: matchpathcon -V does not always work as expected.
2008-09-30 12:54 matchpathcon -V does not always work as expected Daniel J Walsh
@ 2008-10-14 19:09 ` Joshua Brindle
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Brindle @ 2008-10-14 19:09 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: SE Linux
Daniel J Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> matchpathcon -V should be passing the mode when checking whether the
> file context on a file is correct.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkjiIXoACgkQrlYvE4MpobPXJwCeOgcA2Zj05Mwdmqv0NGxyl3RZ
> lr8AmwYglOU6ubFXO0r9jh1Z2v6cAO9u
> =wk/a
> -----END PGP SIGNATURE-----
>
merged in libselinux-2.0.74
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-14 19:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-30 12:54 matchpathcon -V does not always work as expected Daniel J Walsh
2008-10-14 19:09 ` Joshua Brindle
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.