Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/shm is currently mounted with noexec #1607

Open
pbrezina opened this issue Jan 16, 2025 · 0 comments
Open

/dev/shm is currently mounted with noexec #1607

pbrezina opened this issue Jan 16, 2025 · 0 comments
Labels
1. Bug Something isn't working

Comments

@pbrezina
Copy link

/dev/shm is currently mounted with noexec, there one can not for example run configure scripts inside /dev/shm when building code off-tree.

fedora-toolbox-41 [pbrezina /dev/shm/authselect]$ ~/workspace/authselect/configure --enable-silent-rules --prefix=/dev/shm/authselect-install
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in '/dev/shm/authselect':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details
$ mount | grep shm
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,seclabel,inode64)
tmpfs on /run/host/dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)

The workaround can be to use /run/host/dev/shm, but I think toolbox should allow exec bits on /dev/shm as well, given its development purpose.

@pbrezina pbrezina added the 1. Bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant