Is it possible to remount a filesystem read-only, if it has open fifos?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












If a file is still open for writing on the root file system, for example, the filesystem cannot be remounted read-only for a clean shutdown.



At least this is true for regular files. But what about named pipes, aka fifos?







share|improve this question























    up vote
    0
    down vote

    favorite












    If a file is still open for writing on the root file system, for example, the filesystem cannot be remounted read-only for a clean shutdown.



    At least this is true for regular files. But what about named pipes, aka fifos?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      If a file is still open for writing on the root file system, for example, the filesystem cannot be remounted read-only for a clean shutdown.



      At least this is true for regular files. But what about named pipes, aka fifos?







      share|improve this question











      If a file is still open for writing on the root file system, for example, the filesystem cannot be remounted read-only for a clean shutdown.



      At least this is true for regular files. But what about named pipes, aka fifos?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jul 12 at 21:32









      sourcejedi

      18k22375




      18k22375




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Yes. Opening a fifo special file for writing, does not prevent the filesystem from being remounted read-only.



          # unshare -rm
          # mount -ttmpfs tmp /mnt
          # mknod /mnt/fifo p
          # exec 3<>/mnt/fifo
          # mount /mnt -oremount,ro
          # exit





          share|improve this answer





















            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%2f454986%2fis-it-possible-to-remount-a-filesystem-read-only-if-it-has-open-fifos%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



            accepted










            Yes. Opening a fifo special file for writing, does not prevent the filesystem from being remounted read-only.



            # unshare -rm
            # mount -ttmpfs tmp /mnt
            # mknod /mnt/fifo p
            # exec 3<>/mnt/fifo
            # mount /mnt -oremount,ro
            # exit





            share|improve this answer

























              up vote
              0
              down vote



              accepted










              Yes. Opening a fifo special file for writing, does not prevent the filesystem from being remounted read-only.



              # unshare -rm
              # mount -ttmpfs tmp /mnt
              # mknod /mnt/fifo p
              # exec 3<>/mnt/fifo
              # mount /mnt -oremount,ro
              # exit





              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                Yes. Opening a fifo special file for writing, does not prevent the filesystem from being remounted read-only.



                # unshare -rm
                # mount -ttmpfs tmp /mnt
                # mknod /mnt/fifo p
                # exec 3<>/mnt/fifo
                # mount /mnt -oremount,ro
                # exit





                share|improve this answer













                Yes. Opening a fifo special file for writing, does not prevent the filesystem from being remounted read-only.



                # unshare -rm
                # mount -ttmpfs tmp /mnt
                # mknod /mnt/fifo p
                # exec 3<>/mnt/fifo
                # mount /mnt -oremount,ro
                # exit






                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jul 12 at 21:32









                sourcejedi

                18k22375




                18k22375






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454986%2fis-it-possible-to-remount-a-filesystem-read-only-if-it-has-open-fifos%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    The Forum (Inglewood, California)

                    Palaiologos