Comment 2 for bug 1848064

Revision history for this message
Brian Murray (brian-murray) wrote :

I personally noticed this with a crash file with the following permissions:

-rw-r----- 1 bdmurray whoopsie 194K Feb 7 15:22 _usr_bin_seeded-in-ubuntu.1000.crash

whoopsie-upload-all, which runs as root, is unable to append to the crash file due to /proc/sys/fs/protected_regular being set to 1. Changing that file to 0 allows whoopsie-upload-all to run. Here's a simple test case, thanks Steve!

# echo 0 > /proc/sys/fs/protected_regular
# python3 -c "foo = open('/var/crash/_usr_bin_reportbug.1000.crash', 'ab')"
# echo 1 > /proc/sys/fs/protected_regular
# python3 -c "foo = open('/var/crash/_usr_bin_reportbug.1000.crash', 'ab')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_bin_reportbug.1000.crash'