mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
login: we only allow opening character devices
We already don't allow directly opening block devices attached to the seat. They are handled by udisks instead. Clarify the code used when restarting logind.
This commit is contained in:
parent
a94c162021
commit
8b983cc74a
@ -453,8 +453,8 @@ static int manager_attach_fds(Manager *m) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!S_ISCHR(st.st_mode) && !S_ISBLK(st.st_mode)) {
|
||||
log_debug("Device fd doesn't actually point to device node: %m");
|
||||
if (!S_ISCHR(st.st_mode)) {
|
||||
log_debug("Device fd doesn't point to a character device node");
|
||||
close_nointr(fd);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user