nextcloud / nextcloud/nextcloud-docker-dev

Setup does not work with Selinux

Aperta
#487 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug
Lingua principale
PHP
Stelle
190
Fork
103
Merge medio
4h 36m
PR unite (30g)
1

Descrizione

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. Have a system with selinux enabled (e.g. Fedora)
  2. Clone nextcloud-docker-dev
  3. Run ./bootstrap.sh
  4. Start Nextcloud
    docker compose up nextcloud proxy
    
Expected behaviour

Nextcloud should start and be available at https://nextcloud.local

Actual behaviour

Access to the docker socket is denied (the same probably applies to the mounted nextcloud workspace and apps, but it doesn't get as far to notice).

Workaround

Everything works correctly when disabling selinux globally (sudo setenforce 0), however, this is obviously not a great solution to apply regularly.

Proposed solution

For this use case, I think, the most pragmatic solution would be running the containers with --security-opt label=disabled where needed (i.e. disabling selinux separation for the container, which is still better than doing it for the whole system). I can provide a pull request if desired.

Server configuration

Web server: Apache/Nginx (all of them)

Database: MySQL/Maria/SQLite/PostgreSQL (all of them)

PHP version: 8.5/8.4/8.3 (all of them)

Nextcloud version: all

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con bootstrap.sh e le definizioni di Docker Compose utilizzate da docker compose up nextcloud proxy; riproduci il problema con SELinux enforcing e ispeziona i mount del socket e del workspace. Il lavoro è completato quando l’ambiente di sviluppo si avvia e Nextcloud è disponibile all’indirizzo https://nextcloud.local senza disabilitare SELinux globalmente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, docker-compose, linux
Ambito
devops, infrastructure
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.