[LTP] [PATCH] runtest/fs: Don't read files in /dev indiscriminately

Richard Palethorpe rpalethorpe@suse.de
Mon May 14 11:04:48 CEST 2018


Cyril Hrubis writes:

> Hi!
>> > It would be better to replace indiscriminate reading of /dev files
>> > with tests targeting specific files in /dev which have defined known
>> > behaviour, e.g., /dev/null, /dev/urandom, etc.
>> >
>> > In the meanwhile, drop the indiscriminate reading of files in /dev.
>> Another solution might be to add an option which drops privileges before
>> running the test on /dev. An unprivileged user should not have access to files
>> like /dev/port, but will for /dev/null and /dev/urandom.
> That sounds like a better solution to me, can we get that in before the
> release?

Yes, I can give this priority.

Thank you,

More information about the ltp mailing list