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'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1848064

Title:
  /usr/share/apport/whoopsie-upload-
  all:PermissionError:/usr/share/apport/whoopsie-upload-
  all@168:collect_info:process_report

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1848064/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to