•  
      request #3467 [CentOS6] error setting SELinux context in setup.sh
    Infos
    #3467
    Dominique Leducq (dleducq)
    2014-02-28 13:52
    2013-05-22 16:44
    2269
    Details
    [CentOS6] error setting SELinux context in setup.sh
    while running setup.sh, I got a bunch of errors from chcon complaining about invalid argument.
    I had to change
    SELINUX_CONTEXT="root:object_r:httpd_sys_content_t";
    to
    SELINUX_CONTEXT="root:object_r:httpd_sys_content_t:s0"
    Installation process
    Empty
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Manuel Vacelet (vaceletm)
    Closed
    Empty
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    For a successfull installation on a CentOS 6.4, I've also needed to make the same kind of modifications in the file /usr/share/tuleap/src/utils/fix_selinux_contexts.pl and changed

    $context="root:object_r:httpd_sys_content_t";
    to
    $context="root:object_r:httpd_sys_content_t:s0";

    `$CHCON -R -h system_u:object_r:public_content_t $sys_data_dir/ftp`;
    to
    `$CHCON -R -h system_u:object_r:public_content_t:s0 $sys_data_dir/ftp`;

    `$CHCON -R -h system_u:object_r:public_content_rw_t $sys_data_dir/ftp/incoming`;
    to
    `$CHCON -R -h system_u:object_r:public_content_rw_t:s0 $sys_data_dir/ftp/incoming`;

    `$CHCON -h system_u:object_r:cvs_data_t /cvsroot`;
    to
    `$CHCON -h system_u:object_r:cvs_data_t:s0 /cvsroot`;

    `$CHCON -R -h system_u:object_r:cvs_data_t /cvsroot/`;
    to
    `$CHCON -R -h system_u:object_r:cvs_data_t:s0 /cvsroot/`;