rlenferink opened a new issue, #784:
URL: https://github.com/apache/celix/issues/784

   The same issue as described in 
https://github.com/apache/celix/pull/731#issuecomment-2223662811 still exists.
   
   I have used the following commands:
   
   
https://github.com/apache/celix/blob/4da5eeef07938ac26c2b49ad88be9dcae0925d6b/.devcontainer/README.md#L48-L50
   
   After building the container image (which succeeds), when running the 
`run-devcontainer.sh` the following error is given:
   
   ```
   conanfile.py (celix/3.0.0): ERROR: Traceback (most recent call last):
     File 
"/home/celixdev/.local/share/pipx/venvs/conan/lib/python3.12/site-packages/conans/client/generators/__init__.py",
 line 105, in write_generators
       generator.generate()
     File 
"/home/celixdev/.local/share/pipx/venvs/conan/lib/python3.12/site-packages/conan/tools/cmake/cmakedeps/cmakedeps.py",
 line 49, in generate
       save(self._conanfile, generator_file, content)
     File 
"/home/celixdev/.local/share/pipx/venvs/conan/lib/python3.12/site-packages/conan/tools/files/files.py",
 line 48, in save
       with open(path, "a" if append else "w", encoding=encoding, newline="") 
as handle:
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   PermissionError: [Errno 13] Permission denied: 'cmakedeps_macros.cmake'
   
   ERROR: Error in generator 'CMakeDeps': [Errno 13] Permission denied: 
'cmakedeps_macros.cmake'
   ```
   
   Since the devcontainer is still running after the failure I tried to enter 
the container and simply touch a file. Doing that as `celixdev` user didn't 
work, but as `root` (within the container) this did work.
   
   The steps I used:
   
   ```bash
   [rlenferink@fedora celix]$ podman exec -it celixdev bash
   celixdev@fedora:~/workspace$ touch test
   touch: cannot touch 'test': Permission denied
   celixdev@fedora:~/workspace$ id
   uid=1000(celixdev) gid=1000(celixdev) groups=1000(celixdev),27(sudo)
   celixdev@fedora:~/workspace$ 
   exit
   [rlenferink@fedora celix]$ podman exec -it -u 0 celixdev bash
   root@fedora:/home/celixdev/workspace# id
   uid=0(root) gid=0(root) groups=0(root)
   root@fedora:/home/celixdev/workspace# touch test
   root@fedora:/home/celixdev/workspace# rm -f test 
   root@fedora:/home/celixdev/workspace# 
   exit
   [rlenferink@fedora celix]$ id
   uid=1026(rlenferink) gid=100(users) groups=100(users),1000(rlenferink) 
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
   ```
   
   ### Environment
   
   ```bash
   [rlenferink@fedora ~]$ cat /etc/redhat-release 
   Fedora release 40 (Forty)
   
   [rlenferink@fedora ~]$ uname -r
   6.9.6-200.fc40.x86_64
   
   # SELinux enabled
   [rlenferink@fedora ~]$ getenforce 
   Enforcing
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to