[LTP] [PATCH v2] syscalls/add_key01: test the length of payload
Cyril Hrubis
chrubis@suse.cz
Thu Jan 23 13:56:32 CET 2020
Hi!
> I don't run this test under an unpriviledged user. Seeing keyrings
> manpages, it said "
> /proc/sys/kernel/keys/maxbytes (since Linux 2.6.26)
> This is the maximum number of bytes of data that a nonroot user can
> hold in the payloads of the keys owned by theuser.
> The default value in this file is 20,000.
Hmm, that means that we should write a test for this limit as well.
> I perfer to add .needs_root in this flag and check this in a new case.
> What do you think about it?
Sounds good, I was thinking the same. So I will fix this and a few minor
things as well and push this patch.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list