fapolicyd icon indicating copy to clipboard operation
fapolicyd copied to clipboard

fix handling /proc/mounts escape sequences

Open mmatous opened this issue 3 years ago • 1 comments

Hi, fapolicyd currently doesn't handle octal escape sequences in /proc/mounts. The unmangle() code is basically what util-linux uses with some checks discarded since we know (or assume, sscanf result isn't checked) we are operating on sufficiently long null-terminated string in-place.

mmatous avatar Mar 31 '22 23:03 mmatous

Could you take a look, @stevegrubb?

mmatous avatar May 08 '22 21:05 mmatous

Hello, I extended and use your function in #232. Thank you for contribution. :)

radosroka avatar Mar 24 '23 15:03 radosroka