diff --exclude-from=exclude -N -u -r nsalibselinux/src/rpm.c libselinux-1.21.1/src/rpm.c --- nsalibselinux/src/rpm.c 2004-11-09 09:13:54.000000000 -0500 +++ libselinux-1.21.1/src/rpm.c 2005-01-24 15:24:33.000000000 -0500 @@ -41,8 +41,10 @@ rc = setexeccon(newcon); if (rc < 0) goto out; - rc = execve(filename, argv, envp); out: + if ( ( rc == 0 ) || + (security_getenforce() == 0 )) + rc = execve(filename, argv, envp); context_free(con); freecon(newcon); freecon(fcon);