Replies: 2 comments
-
Dropping sounds good to me. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, this is dumb to check. Would be good to see how the program fails with a nonprivileged user so the error message is not totally inscrutable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can we drop checking if the user is root?
stenc/src/main.cpp
Lines 228 to 230 in ebabc39
Now when we use a syslog for logs, at least under Linux, an ordinary user can use Stenc if he has the right to read the tape device and Stenc has set cap_sys_rawio capability.
https://man7.org/linux/man-pages/man7/capabilities.7.html
https://man7.org/linux/man-pages/man8/setcap.8.html
Beta Was this translation helpful? Give feedback.
All reactions