Symantec Access Management

  • 1.  libmod_sm24.so: cannot open shared object file: Permission denied

    Posted Jan 22, 2018 11:34 AM

    Cannot start a 12.52 WebAgent on redhat 7.0

     

    Seeing error message:

     

    Jan 22 11:21:25 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
    Jan 22 11:21:25 localhost.localdomain httpd[2911]: httpd: Syntax error on line 55 of /etc/httpd/conf/httpd.conf: Cannot load /software/webagent/bin/libmod_sm24.so into server: /software/webagent/bin/libmod_sm24.so: cannot open shared object file: Permission denied
    Jan 22 11:21:25 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Jan 22 11:21:25 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
    Jan 22 11:21:25 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

     

    Version information:

     

    OS:

    Redhat 7.0 -  3.10.0-123.el7.x86_64

     

    Policy server:

    Version=12.7,Update=01.00,Label=1437

     

    Webagent:

    FullVersion=12.52.108.2504
    Version=12.52
    Update=108
    Build Number=2504

     

     

    Thanks!

     



  • 2.  Re: libmod_sm24.so: cannot open shared object file: Permission denied

    Posted Jan 22, 2018 11:39 AM

    Can you share http.conf? It says syntax error.

     

    Sent from my iPhone



  • 3.  Re: libmod_sm24.so: cannot open shared object file: Permission denied
    Best Answer

    Posted Jan 22, 2018 11:46 AM

    Hi,

     

    Check that the user running Apache has permissions on the file, and also verify SELinux is disabled or configured properly:

    Apache reports "Permission Denied" to load the libmod_sm22.so or libmod_sm24.so module on SELinux. 

     

    Also, ensure you have sourced correctly the environment variables script before starting Apache.

     

    Hope this helps,

     

    Albert



  • 4.  Re: libmod_sm24.so: cannot open shared object file: Permission denied

    Broadcom Employee
    Posted Jan 22, 2018 03:56 PM

    Hello, This could very well be SE Linux permission issue, as mentioned by Albert above. Do strace of httpd (with switches "-f" for forked child process tracing system calls and "-d" for debug, etc.), and it would be clearer.

     

    Regards. - Vijay



  • 5.  Re: libmod_sm24.so: cannot open shared object file: Permission denied

    Posted Jan 22, 2018 04:43 PM

    I ended up doing a couple of things.

     

    First i disabled SELinux:

    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux-working_with_selinux-main_configuration_file

     

     

    After this error progressed to:

    libsmerrlog.so: cannot open shared object file: No such file or directory

     

    I ended up adding the following to /etc/sysconfig/httpd

     

    NETE_WA_ROOT=/software/webagent
    NETE_WA_PATH=/software/webagent/bin
    CAPKIHOME=/software/webagent/CAPKI
    LD_LIBRARY_PATH=/software/webagent/bin:/software/webagent/bin/thirdparty:/software/webagent/bin:/software/webagent/bin/thirdparty:
    PATH=/software/webagent/bin:/software/webagent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

    ... and we have liftoff :-)

     

    Thanks guys!



  • 6.  RE: Re: libmod_sm24.so: cannot open shared object file: Permission denied

    Posted Mar 31, 2022 02:54 PM
    Thanks , i also added to httpd file under sysconfig and it worked.