/
githubmirror
/
acl
Обзор
Документация
Войти
/
githubmirror
/
acl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/restore.run
26 строк
737 B
Andreas Gruenbacher
harden setfacl --restore
28 июн 2026, 23:44
28 июн 2026, 23:44
54e14e9
Код
Авторство
О чём код?
$ mkdir d $ touch d/f $ ln -s f d/l $ getfacl -RP d > physical $ getfacl -RL d > logical Restoring a physical backup should work: $ setfacl --restore=physical --physical Restoring a backup non-physically should produce the following warning: $ setfacl --restore=physical > Warning: option --restore=file is unsafe without option -P (--physical) as it traverses symbolic links in pathnames Restoring a logical backup can fail: $ setfacl --restore=logical --physical > setfacl: d/l: Too many levels of symbolic links Malformed restore file $ echo "# owner: root" > dump $ setfacl --restore=dump 2>&1 >setfacl: dump: No filename found in line 0, aborting