Anomalie #2325
Mauvaise application des droits pour la creation de partages avec sticky bit
Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Target version:
Distribution:
EOLE 2.3
Description
Dans /usr/share/pyshared/horus/backend.py, remplacer la ligne "chmod(filepath, 1700)" par "chmod(filepath, 01700)" car sinon la fonction python os.chmod l'interprète différement et ça applique des droits totalement faux sur le dossier du partage
Associated revisions
horus/backend.py : correction sur l'application du sticky bit (fixes #2325)
History
#1 Updated by Joël Cuissinat over 11 years ago
- Project changed from Horus to horus-backend
#2 Updated by Joël Cuissinat over 11 years ago
- Assigned To set to Joël Cuissinat
- Target version set to Mises à jour 2.3 - 02 Stable
- Estimated time set to 0.50 h
root@horus23:/tmp# mkdir test1 test2 root@horus23:/tmp# python -c """from os import chmod;chmod('test1', 1700);chmod('test2', 01700)""" root@horus23:/tmp# ls -ld test* d-w-r-Sr-T 2 root root 4096 2011-11-04 09:36 test1 drwx-----T 2 root root 4096 2011-11-04 09:36 test2
Le code python se comporte exactement pareil en 2.2 sauf que dans le backend.py
de la 2.2, le chmod
est appelé directement dans un shell (os.system) !
764: system ("chgrp %(group)s %(path)s;chmod 1770 %(path)s;" % dico_share)
#3 Updated by Joël Cuissinat over 11 years ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
Appliqué par commit 23de8cf17bf5f88b6f3017f711c4f35bca7bef9d.
#4 Updated by Joël Cuissinat over 11 years ago
=> horus-backend-2.3-eole42
#5 Updated by Joël Cuissinat over 11 years ago
- Status changed from Résolu to Fermé
Corrigé sauf que les droits sont pourris sur les partages créés avant la mise à jour !
Une nouvelle image d'installation serait la bienvenue ;)
root@horus23:~# ls -ld /data/minedu* d-wxrws-wT+ 2 root minedu 4096 2011-10-28 14:51 /data/minedu drwxrwx--T+ 2 root minedu 4096 2011-11-09 09:36 /data/minedu2