The following commit has been merged in the master branch:
commit 006781260af02f5b1c4b466a27c2aab9490e4794
Author: Guillem Jover <[email protected]>
Date: Sun Nov 11 00:25:31 2012 +0100
dpkg: Do not check for selabel_lookup_raw() returning "<<none>>" context
The selabel_file(5) man page clearly states that the function may never
return such context, so do not check for it.
diff --git a/src/archives.c b/src/archives.c
index 0ab4bc0..783719c 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -511,11 +511,9 @@ tarobject_set_se_context(const char *matchpath, const char
*path, mode_t mode)
if (ret == -1 || (ret == 0 && scontext == NULL))
return;
- if (strcmp(scontext, "<<none>>") != 0) {
- ret = lsetfilecon_raw(path, scontext);
- if (ret < 0 && errno != ENOTSUP)
- ohshite(_("cannot set security context for file object '%s'"), path);
- }
+ ret = lsetfilecon_raw(path, scontext);
+ if (ret < 0 && errno != ENOTSUP)
+ ohshite(_("cannot set security context for file object '%s'"), path);
freecon(scontext);
#endif /* WITH_SELINUX */
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]