[GH-ISSUE #3690] test failure: mkdir.exp #2323

Closed
opened 2026-05-05 09:00:52 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @reinerh on GitHub (Oct 24, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3690

$ cd test/fs/
$ ./mkdir.exp
spawn /bin/bash
firejail --profile=mkdir.profile find ~/.firejail_test
  $ firejail --profile=mkdir.profile find ~/.firejail_test
Reading profile mkdir.profile
Warning: cannot create user directory
TESTING ERROR 1.2

The test fails because of the warning "cannot create user directory".
I'm not sure if this is expected and can be ignored (so the test needs to be adapted) or an actual issue.

Originally created by @reinerh on GitHub (Oct 24, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3690 ``` $ cd test/fs/ $ ./mkdir.exp spawn /bin/bash firejail --profile=mkdir.profile find ~/.firejail_test $ firejail --profile=mkdir.profile find ~/.firejail_test Reading profile mkdir.profile Warning: cannot create user directory TESTING ERROR 1.2 ``` The test fails because of the warning "cannot create user directory". I'm not sure if this is expected and can be ignored (so the test needs to be adapted) or an actual issue.
gitea-mirror 2026-05-05 09:00:52 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Nov 1, 2020):

I think we can ignore them, if something goes wrong the test will catch it anyway. Try it out.

<!-- gh-comment-id:720089560 --> @netblue30 commented on GitHub (Nov 1, 2020): I think we can ignore them, if something goes wrong the test will catch it anyway. Try it out.
Author
Owner

@reinerh commented on GitHub (Nov 1, 2020):

It's still failing, but at a later point. See log in #3719.

TESTING: recursive mkdir (test/fs/mkdir.exp)
spawn /bin/bash
rm -fr ~/.firejail_test
runner@fv-az108-477:~/work/firejail/firejail/test/fs$ rm -fr ~/.firejail_test
runner@fv-az108-477:~/work/firejail/firejail/test/fs$ 
<ejail --profile=mkdir.profile find ~/.firejail_test  
Reading profile mkdir.profile
Warning: cannot create 1001 directory
Parent pid 5169, child pid 5176
Warning: cannot create 1001 directory
]0;firejail find /home/runner/.firejail_test Child process initialized in 13.30 ms
/home/runner/.firejail_test
/home/runner/.firejail_test/a
/home/runner/.firejail_test/a/b
/home/runner/.firejail_test/a/b/c
/home/runner/.firejail_test/a/b/c/d.txt
rm -rf ~/.firejail_test
Warning: removing 24 bytes from stdin

Parent is shutting down, bye...
runner@fv-az108-477:~/work/firejail/firejail/test/fs$ 
<il --profile=mkdir.profile find /tmp/.firejail_test  
Reading profile mkdir.profile
Warning: cannot create 1001 directory
Parent pid 5181, child pid 5184
Warning: cannot create 1001 directory
]0;firejail find /tmp/.firejail_test Child process initialized in 10.48 ms
/tmp/.firejail_test
/tmp/.firejail_test/a
/tmp/.firejail_test/a/b
/tmp/.firejail_test/a/b/c
/tmp/.firejail_test/a/b/c/d.txt
rm -rf /tmp/.firejail_test
Warning: removing 27 bytes from stdin

Parent is shutting down, bye...
runner@fv-az108-477:~/work/firejail/firejail/test/fs$ 
<le=mkdir.profile find /run/user/1001/.firejail_test  
Reading profile mkdir.profile
Warning: cannot create 1001 directory
Parent pid 5191, child pid 5194
Warning: cannot create 1001 directory
]0;firejail find /run/user/1001/.firejail_test Child process initialized in 11.46 ms
find: '/run/user/1001/.firejail_test': No such file or directory

Parent is shutting down, bye...
runner@fv-az108-477:~/work/firejail/firejail/test/fs$ TESTING ERROR 3.1
<!-- gh-comment-id:720164911 --> @reinerh commented on GitHub (Nov 1, 2020): It's still failing, but at a later point. See log in #3719. ``` TESTING: recursive mkdir (test/fs/mkdir.exp) spawn /bin/bash rm -fr ~/.firejail_test runner@fv-az108-477:~/work/firejail/firejail/test/fs$ rm -fr ~/.firejail_test runner@fv-az108-477:~/work/firejail/firejail/test/fs$ <ejail --profile=mkdir.profile find ~/.firejail_test  Reading profile mkdir.profile Warning: cannot create 1001 directory Parent pid 5169, child pid 5176 Warning: cannot create 1001 directory ]0;firejail find /home/runner/.firejail_test Child process initialized in 13.30 ms /home/runner/.firejail_test /home/runner/.firejail_test/a /home/runner/.firejail_test/a/b /home/runner/.firejail_test/a/b/c /home/runner/.firejail_test/a/b/c/d.txt rm -rf ~/.firejail_test Warning: removing 24 bytes from stdin Parent is shutting down, bye... runner@fv-az108-477:~/work/firejail/firejail/test/fs$ <il --profile=mkdir.profile find /tmp/.firejail_test  Reading profile mkdir.profile Warning: cannot create 1001 directory Parent pid 5181, child pid 5184 Warning: cannot create 1001 directory ]0;firejail find /tmp/.firejail_test Child process initialized in 10.48 ms /tmp/.firejail_test /tmp/.firejail_test/a /tmp/.firejail_test/a/b /tmp/.firejail_test/a/b/c /tmp/.firejail_test/a/b/c/d.txt rm -rf /tmp/.firejail_test Warning: removing 27 bytes from stdin Parent is shutting down, bye... runner@fv-az108-477:~/work/firejail/firejail/test/fs$ <le=mkdir.profile find /run/user/1001/.firejail_test  Reading profile mkdir.profile Warning: cannot create 1001 directory Parent pid 5191, child pid 5194 Warning: cannot create 1001 directory ]0;firejail find /run/user/1001/.firejail_test Child process initialized in 11.46 ms find: '/run/user/1001/.firejail_test': No such file or directory Parent is shutting down, bye... runner@fv-az108-477:~/work/firejail/firejail/test/fs$ TESTING ERROR 3.1 ```
Author
Owner

@netblue30 commented on GitHub (Nov 8, 2020):

All set. I also added some of the profile tests.

<!-- gh-comment-id:723591054 --> @netblue30 commented on GitHub (Nov 8, 2020): All set. I also added some of the profile tests.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2323
No description provided.