git/list[1] front-page[2] threads[3] people[4] search[5] about
 

SELinux context for Git user on Fedora server?

From
JWJeffrey Walton <noloader@gmail.com>
Date
Oct 30, 2019, 05:26 UTC
Message-ID
<CAH8yC8=uGb3J+fvkSj7-gdhqy0vtQw90K-MWQ3T1TTMQzAJnJA@mail.gmail.com>
Hi Everyone,

I'm trying to setup a Git server on Fedora 30 server with SELinux in enforcing mode. I am following https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server .

At the push on the local machine:
  $ git push -v origin master
  Pushing to ssh://git@euclid:/var/callboot/source.git
  Enter passphrase for key ...
  fatal: '/var/callboot/source.git' does not appear to be a git repository
  fatal: Could not read from remote repository.
  ...

I suspect the SELinux labels for /var/callboot/source.git are not quite right. Right now it looks as follows. httpd_sys_content_t is typical for a web server and I think it needs to be something else.

  # ls -Z /var/callboot/source.git
  unconfined_u:object_r:httpd_sys_content_t:s0 branches
  unconfined_u:object_r:httpd_sys_content_t:s0 config
  unconfined_u:object_r:httpd_sys_content_t:s0 description
  unconfined_u:object_r:httpd_sys_content_t:s0 HEAD
  unconfined_u:object_r:httpd_sys_content_t:s0 hooks
  unconfined_u:object_r:httpd_sys_content_t:s0 info
  unconfined_u:object_r:httpd_sys_content_t:s0 objects
  unconfined_u:object_r:httpd_sys_content_t:s0 refs
What should the SELinux labels be for the Git user?
Thanks in advance.
Next: Elijah Newren
Message 1 of 2 in “SELinux context for Git user on Fedora server?”
  1. Jeffrey WaltonOct 30, 2019
  2. Elijah NewrenOct 30, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.