Mount points and nodev options

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm studying device files and I've seen some mount points cannot accept the device file creation (if nodev option is set).
Considering my mount output:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
.....
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
I've tried to create a device file in /sys/kernel/debug (the directory has been chosen only because it doesn't have the nodev option) but the operation is not permitted. I don't understand the rationale behind it: why is the operation not possible?
mount
add a comment |Â
up vote
0
down vote
favorite
I'm studying device files and I've seen some mount points cannot accept the device file creation (if nodev option is set).
Considering my mount output:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
.....
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
I've tried to create a device file in /sys/kernel/debug (the directory has been chosen only because it doesn't have the nodev option) but the operation is not permitted. I don't understand the rationale behind it: why is the operation not possible?
mount
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm studying device files and I've seen some mount points cannot accept the device file creation (if nodev option is set).
Considering my mount output:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
.....
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
I've tried to create a device file in /sys/kernel/debug (the directory has been chosen only because it doesn't have the nodev option) but the operation is not permitted. I don't understand the rationale behind it: why is the operation not possible?
mount
I'm studying device files and I've seen some mount points cannot accept the device file creation (if nodev option is set).
Considering my mount output:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
.....
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
I've tried to create a device file in /sys/kernel/debug (the directory has been chosen only because it doesn't have the nodev option) but the operation is not permitted. I don't understand the rationale behind it: why is the operation not possible?
mount
mount
edited 20 mins ago
Rui F Ribeiro
37.6k1475119
37.6k1475119
asked 31 mins ago
andrew
1
1
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
You canâÂÂt write to /sys/kernel/debug because itâÂÂs not a general-purpose file system; itâÂÂs the kernelâÂÂs debugfs, which exists to allow the kernel to export debug information to user space.
As to why nodev is important, see Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking?
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You canâÂÂt write to /sys/kernel/debug because itâÂÂs not a general-purpose file system; itâÂÂs the kernelâÂÂs debugfs, which exists to allow the kernel to export debug information to user space.
As to why nodev is important, see Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking?
add a comment |Â
up vote
0
down vote
You canâÂÂt write to /sys/kernel/debug because itâÂÂs not a general-purpose file system; itâÂÂs the kernelâÂÂs debugfs, which exists to allow the kernel to export debug information to user space.
As to why nodev is important, see Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking?
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You canâÂÂt write to /sys/kernel/debug because itâÂÂs not a general-purpose file system; itâÂÂs the kernelâÂÂs debugfs, which exists to allow the kernel to export debug information to user space.
As to why nodev is important, see Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking?
You canâÂÂt write to /sys/kernel/debug because itâÂÂs not a general-purpose file system; itâÂÂs the kernelâÂÂs debugfs, which exists to allow the kernel to export debug information to user space.
As to why nodev is important, see Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking?
answered 5 mins ago
Stephen Kitt
152k23338406
152k23338406
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478132%2fmount-points-and-nodev-options%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password