• 1

SELinux - enforcing mode - execmod error - any compiler options

My code is basically compiled on RHEL 3 with gcc 3.2.3 and I am trying to run on RHEL 5. In the SELinux enforcing mode, when I run my app, I get this message in audit.log..

typ msg=audit(1160574210.165:179): avc: denied { execmod } for pid=3902 comm="runappp" name="libmyutil.so.3.20.117" dev=dm-0 ino=1052666 scontext=root:system_r:unconfined_t:s0-s0:c0.c255 tcontext=root:object_r:bin_t:s0 tclass=file
type=AVC_PATH msg=audit(1160574210.165:179): path="/opt/myshare/libmyutil.so.3.20.117"


I was reading through the journal and used chcon to fix this problem. But is there a way to provide some compiler options and compile the code to fix this problem.

I would appreciate if you can provide some info on this.

Re: SELinux - enforcing mode - execmod error - any compiler options

Did you look at the description here?

http://people.redhat.com/~drepper/selinux-mem.html

Re: SELinux - enforcing mode - execmod error - any compiler options

I looked into this - http://people.redhat.com/drepper/textrelocs.html.
and am using the compiler flag '-fPIC' for shared objects to fix this problem.

Org Proxy-Connection: close Linker error when using -qextchk option on AIX64 - Unix Forum Linker error when using -qextchk option on AIX64 This is a discussion on Linker error when using -qextchk option on AIX64 within the Aix forums, part of the Unix category; hi , i am trying to compile on AIX using -qextchk flag , but i am getting the below linker error.

  • 1
?

Log in