| Summary: | CIFS cannot gain access to a file when fanotify works with OPEN_PERM | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Sisyphus | Reporter: | Evgeny Shesteperov <alimektor> | ||||||
| Component: | kernel-image-6.12 | Assignee: | kernelbot <kernelbot> | ||||||
| Status: | NEW --- | QA Contact: | qa-sisyphus | ||||||
| Severity: | normal | ||||||||
| Priority: | P5 | CC: | kernelbot, pashininaaa, placeholder, shevchenkodyu | ||||||
| Version: | unstable | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Attachments: |
|
||||||||
Created attachment 17165 [details]
fanotify.c
Created attachment 17166 [details]
test.sh
|
Версия - 6.6.60-6.6-alt1 - 6.11.7-6.11-alt1 - 6.12.0-6.12-alt0.rc7 Стенд - ALT Server 11 (Sisyphus) - Samba DC - ALT Workstation K 11 (Sisyphus) - Samba Client Шаги Воспроизведения 1. Создать test2.docx на share (в примере //dc/share) 2. Примонтировать share: # mkdir -p /mnt/boxes # mount -v -t cifs -o user=testuser //dc/share /mnt/boxes && l /mnt/boxes 3. Скачать тестовые файлы из attachments: (test.sh, fanotify.c) 4. Выполнить fanotify: # apt-get install -y gcc glibc-devel # gcc -o fanotify fanotify.c -lpthread # ./fanotify /mnt/boxes 5. Выполнить test.sh: chmod +x test.sh ./test.sh Ожидаемый результат: Вывод в конце Everything looks OK Фактический результат: mv: невозможно переместить '/mnt/boxes/lu578719utat3.tmp' в '/mnt/boxes/test2.docx': Отказано в доступе Взято из Bugzilla RedHat -> https://bugzilla.redhat.com/show_bug.cgi?id=2210795 Воспроизводится в P10.