Hide Forgot
SELinux is preventing /nix/store/gvn25bbmcm5ffkdzwvin7a0d8mmmfgfc-curl-7.21.0/bin/curl from using the 'execstack' accesses on a process. ***** Plugin catchall_boolean (89.3 confidence) suggests ******************* If you want to allow unconfined executables to make their stack executable. This should never, ever be necessary. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla Then you must tell SELinux about this by enabling the 'allow_execstack' boolean. Do setsebool -P allow_execstack 1 ***** Plugin catchall (11.6 confidence) suggests *************************** If you believe that curl should be allowed execstack access on processes labeled initrc_t by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep curl /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:initrc_t:s0 Target Context system_u:system_r:initrc_t:s0 Target Objects Unknown [ process ] Source curl Source Path /nix/store/gvn25bbmcm5ffkdzwvin7a0d8mmmfgfc- curl-7.21.0/bin/curl Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.9.7-40.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.12-90.fc14.i686 #1 SMP Fri Apr 22 16:14:44 UTC 2011 i686 i686 Alert Count 16 First Seen Fri 29 Apr 2011 12:39:45 PM HST Last Seen Sat 30 Apr 2011 02:15:27 PM HST Local ID b6c91c98-6ebb-495f-a9ef-5b7afffc1c3d Raw Audit Messages type=AVC msg=audit(1304208927.12:39877): avc: denied { execstack } for pid=1129 comm="curl" scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=process type=SYSCALL msg=audit(1304208927.12:39877): arch=i386 syscall=mprotect success=no exit=EACCES a0=bfffa000 a1=1000 a2=1000007 a3=bfffa670 items=0 ppid=1117 pid=1129 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=curl exe=/nix/store/gvn25bbmcm5ffkdzwvin7a0d8mmmfgfc-curl-7.21.0/bin/curl subj=system_u:system_r:initrc_t:s0 key=(null) Hash: curl,initrc_t,initrc_t,process,execstack audit2allow #============= initrc_t ============== #!!!! This avc can be allowed using the boolean 'allow_execstack' allow initrc_t self:process execstack; audit2allow -R #============= initrc_t ============== #!!!! This avc can be allowed using the boolean 'allow_execstack' allow initrc_t self:process execstack;
Sorry, this problem occurred while using curl 7.21.0 under the nix package manager. Much after the fact, I sent the error message as suggested by the selinux troubleshooter in error. I cannot reproduce this by running curl with what I believe are the commands used by nix, so I cannot ascertain if it is a problem with curl or nix. I will table the issue until I can.