[yocto] pseudo: symbolic links in pseudo

Pavlina Varekova varekpaf at seznam.cz
Fri Jan 12 05:29:00 PST 2018


Hello,

I have an issue getting pseudo working with symbolic links. Pseudo does not 
see files linked by "ln -s" in jail. (It emits warning: No such file or 
directory)

----
How to reproduce it:

# mkdir -p /dir1/jail
# cd /dir1/jail
# ln -s /bin/ls ./ls4
# ls -la
total 140
drwxr-xr-x. 2 root root   4096 Jan 12 03:37 .
drwxr-xr-x. 3 root root   4096 Jan 12 03:37 ..
lrwxrwxrwx. 1 root root      7 Jan 12 03:37 ls4 -> /bin/ls
# /pseudorepo/bin/pseudo  -r "/dir1/jail" -P /pseudorepo/
bash-4.3# /ls4
bash: /ls4: No such file or directory
----

If the binary is copied, pseudo works correctly.
Interesting is that if the jail directory is directly in /root/ (/root/any_
one_dir) then files linked by ln -s are seen by pseudo in jail correctly. 
If the jail is e.g. /home/tester (or some more nested dir), then ln -s does 
not work correctly.

Is this pseudo behavior intentional? Is there any classic approach to move /
dev/urandom file into the jail without root permissions, for pseudo?

Best regards
Pavlina Moravcova Varekova
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180112/b5d43f30/attachment.html>


More information about the yocto mailing list