Mount points and nodev options

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question



























    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?










    share|improve this question

























      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 20 mins ago









      Rui F Ribeiro

      37.6k1475119




      37.6k1475119










      asked 31 mins ago









      andrew

      1




      1




















          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?





          share




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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?





            share
























              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?





              share






















                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?





                share












                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?






                share











                share


                share










                answered 5 mins ago









                Stephen Kitt

                152k23338406




                152k23338406



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)