Security plugin: removing exec label restriction 39/13239/2
authorElena Reshetova <elena.reshetova@intel.com>
Fri, 29 Nov 2013 12:04:53 +0000 (14:04 +0200)
committerElena Reshetova <elena.reshetova@intel.com>
Tue, 3 Dec 2013 11:46:35 +0000 (13:46 +0200)
Change-Id: I1da33e6e842a7f93dade78f2aebc00ed271a271c

plugins/msmxattr.c

index 0661ae3..cdc4bd0 100644 (file)
@@ -1220,6 +1220,7 @@ int msmSetFileXAttributes(manifest_x *mfx, const char* filepath, magic_t cookie)
  found:
     if (exec_label) {
         execLabeldefined = 1;
+#if 0
         if ((strcmp(exec_label, "none") == 0) 
             || ( (mfx->request) && (mfx->request->ac_domain) && (strcmp(exec_label, mfx->request->ac_domain) == 0))) {
             // these labels are allowed
@@ -1229,6 +1230,7 @@ int msmSetFileXAttributes(manifest_x *mfx, const char* filepath, magic_t cookie)
             rpmlog(RPMLOG_DEBUG, "It isn't allowed to label the file with smack64label other than requested ac domain or \"none\" value\n");
             rpmlog(RPMLOG_DEBUG, "The default ac domain label will be used instead\n");
         }
+#endif
     }  
     if ((!label) || (!exec_label)) {
         /* no match, use default label of AC domain */