bugManeage - Bugs: bug #61764, Unwritable /dev/shm bug

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61764: Unwritable /dev/shm bug

Submitter:  Boud Roukema <boud>
Submitted:  Tue 04 Jan 2022 08:28:33 PM UTC
   
 
Category:  Software Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  boud
Open/Closed:  Closed

Wed 05 Jan 2022 12:40:27 AM UTC, comment #1: 

Thanks a lot for the great catch and wonderful bug report (with full details to reproduce the problem).

It has been merged into the 'version-update' branch, so I am closing the bug.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 04 Jan 2022 08:28:33 PM UTC, original submission:  

In the 'reproduce/software/shell/configure.sh' script that
fixes bug https://savannah.nongnu.org/bugs/?60819, we first
create a directory, and then create
a test file 'shm-execution-check.sh' in the new subdirectory
of '/dev/shm' and then check if that script can be run
by the user. See the section starting around lines 1304. [1]

Hypothetically, a system could have the '/dev/shm' device
but not permit the particular user to create directories and files there. (Different users might be given different rights,
for example, or this might be a root-only RAM fs.)

In that case, we don't want a fatal error, because we have the
safe fallback of not using /dev/shm.

I've tested this and there is a failure as expected.

I've put a proposed fix that seems to me to work correctly in all
cases.

To test the failure in commit 5641f4e and to see if commit 7d14eb7 [2] works correctly, try various versions of


sudo mount -o remount,noexec /dev/shm
sudo mount -o remount,exec /dev/shm
sudo mount -o remount,ro /dev/shm
sudo mount -o remount,rw /dev/shm


and check what happens in /dev/shm in the various cases, as
well as whether the ./project configure script behaves as expected.

[1] https://gitlab.com/maneage/project-dev/-/blob/maneage/reproduce/software/shell/configure.sh#L1304

[2] https://gitlab.com/maneage/project-dev/-/commit/7d14eb7a585bbd35fb2a8ed2d75d1da8a5a388b7

Boud Roukema <boud>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by boud (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-05 makhlaghi CategoryNone Software
        Item GroupNone Crash
        StatusNone Fixed
        Assigned toNone boud
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code