From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Mon, 14 May 2018 10:53:24 +0200 Subject: [LTP] [PATCH] runtest/fs: Don't read files in /dev indiscriminately In-Reply-To: <87lgcmy9uq.fsf@rpws.prws.suse.cz> References: <20180511173156.30197-1-punit.agrawal@arm.com> <87lgcmy9uq.fsf@rpws.prws.suse.cz> Message-ID: <20180514085324.GA20130@rei.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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? -- Cyril Hrubis chrubis@suse.cz