All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] runltp - error when using another tmp folder
@ 2018-05-02 14:22 =?unknown-8bit?q?Myl=C3=A8ne?= Josserand
  2018-05-02 15:46 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: =?unknown-8bit?q?Myl=C3=A8ne?= Josserand @ 2018-05-02 14:22 UTC (permalink / raw)
  To: ltp

Hello everyone,

While testing some syscalls tests on an embedded device, I got an error
on many tests (running as "root" user).

Here is an output for chmod03 test:

tst_tmpdir: mkdtemp(/home/root/ltp-XXXXAeI13S/utirN7h1b) failed:
errno=EACCES(13): Permission denied

After looking at the code, Thomas (in CC) and myself found that the
"temp" folder that we used (with "-d" option on "runltp") does not have
a permission of 777.
According to the code of runltp, it seems that it creates a folder with
this permission but because it is retrieving the option using
"readlink", if the folder is not available, it leads to an error
because TMPBASE variable is empty:

BusyBox v1.24.1 (2018-02-10 17:35:25 CET) multi-call binary.

Usage: mkdir [OPTIONS] DIRECTORY...
FATAL: Unable to make temporary directory


Currently, we fixed the issue by using a /tmp folder that already has
777 permission (default's one) but maybe, other users may want to use
another folder and may have the same error we got.

Let me know if you have ideas on how we could improve it.
Thank you in advance.

Best regards,

Mylène

-- 
Mylène Josserand, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-16  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-02 14:22 [LTP] runltp - error when using another tmp folder =?unknown-8bit?q?Myl=C3=A8ne?= Josserand
2018-05-02 15:46 ` Thomas Petazzoni
2018-05-16  9:10   ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.