Skip navigation

This is the second time I’ve run into this, so I’m making a note of it. If you’re compiling and installing git/gitweb outside of a package manager, the selinux file contexts might not be correct and prevent apache from being able to execute the gitweb CGI script. Something like this will appear in your /var/log/audit.log:
avc: denied { search } for pid=16678 comm="gitweb.cgi" dev=sda2 ...
avc: denied { read } for pid=16678 comm="gitweb.cgi" dev=sda2 ...
avc: denied { open } for pid=16678 comm="gitweb.cgi" dev=sda2 ...

To fix issue
$ sudo chcon -u httpd_git_script_exec_t /path/to/gitweb.cgi

If that doesn’t work your selinux policies might be different, you can try:
sudo restorecon -v /path/to/gitweb/dir/*

9 Trackbacks/Pingbacks

  1. By mơ thấy con cá đánh đề con gì on 06 Oct 2020 at 4:13 pm

    … [Trackback]

    […] Find More Information here to that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  2. By mơ thấy ba ba on 07 Oct 2020 at 6:40 am

    … [Trackback]

    […] Information on that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  3. By mơ thấy gạo đánh con gì on 07 Oct 2020 at 6:48 am

    … [Trackback]

    […] Here you can find 66063 more Info on that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  4. By mơ thấy xe tải on 07 Oct 2020 at 7:48 am

    … [Trackback]

    […] Here you can find 37861 additional Info to that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  5. By Pinballs for Sale Online on 09 Oct 2020 at 7:10 pm

    … [Trackback]

    […] Find More Info here to that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  6. By Pomsky breeders on 09 Oct 2020 at 8:25 pm

    … [Trackback]

    […] Read More Information here to that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  7. By f1b labradoodles for sale on 10 Oct 2020 at 4:44 pm

    … [Trackback]

    […] Here you will find 3274 more Info on that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  8. By waterbury bail bonds on 10 Oct 2020 at 4:52 pm

    … [Trackback]

    […] Here you can find 42674 additional Information on that Topic: jackson-brain.com/gitweb-and-selinux/ […]

  9. By firearms for sale online on 10 Oct 2020 at 4:58 pm

    … [Trackback]

    […] Find More Info here to that Topic: jackson-brain.com/gitweb-and-selinux/ […]

Comments are closed.