git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SELinux context for Git user on Fedora server?
@ 2019-10-30  5:26 Jeffrey Walton
  2019-10-30  6:34 ` Elijah Newren
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2019-10-30  5:26 UTC (permalink / raw)
  To: Git List

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-30  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30  5:26 SELinux context for Git user on Fedora server? Jeffrey Walton
2019-10-30  6:34 ` Elijah Newren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).