Setting parameter script_tmp_dir in rhncfg-client.conf to a folder with exec rights corrects the problem.
Pierre 2012/7/23 Pierre Casenove <pcasen...@gmail.com>: > I think I found the problem: > /tmp and /var partitions are mounted with option noexec on these systems. > Is it possible to configure where on the file system the temporary > script is created? I think that currently it is created on /tmp. > > Thanks, > > 2012/7/20 Pierre Casenove <pcasen...@gmail.com>: >> No, I already checked that. No denials in audit logs. >> I don't think it is SELINUX related in fact. >> >> Pierre >> >> 2012/7/20 padawan <obbediscimisonor...@gmail.com>: >>> Do you see anything relevant when: >>> >>> grep denied /var/log/audit.log >>> >>> >>> >>> On 20 July 2012 13:34, Pierre Casenove <pcasen...@gmail.com> wrote: >>>> Hello list, >>>> I have 2 clients on RHEL 6 with SELINUX activated. On these machine, >>>> remote command execution fails. >>>> The remote command works correctly on RHEL 5 boxes. >>>> The script I'm trying to execute is: >>>> #!/bin/sh >>>> echo toto >>>> >>>> Here is the trace I have when launching rhn_check-vvvv on my clients: >>>> >>>> D: do_call script.run(6377, {'username': 'root', 'groupname': 'root', >>>> 'now': '2012-07-20 11:32:27', 'timeout': 600, 'script': >>>> '#!/bin/sh\necho toto'}){'cache_only': None} >>>> D: Sending back response(1, 'Script failed', {'output': '', >>>> 'base64enc': 1, 'process_end': '2012-07-20 11:32:27', 'return_code': >>>> 256, 'process_start': '2012-07-20 11:32:27'}) >>>> >>>> >>>> What could be the problem? >>>> >>>> Before launching the script, I've executed command rhn-actions-control >>>> --enable-all >>>> >>>> Thanks in advance, >>>> >>>> pierre >>>> >>>> _______________________________________________ >>>> Spacewalk-list mailing list >>>> Spacewalk-list@redhat.com >>>> https://www.redhat.com/mailman/listinfo/spacewalk-list >>> >>> >>> >>> -- >>> Music and Audio Productions >>> >>> _______________________________________________ >>> Spacewalk-list mailing list >>> Spacewalk-list@redhat.com >>> https://www.redhat.com/mailman/listinfo/spacewalk-list _______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list