I was able to reproduce the failure, so now I have tested fixes.  First,
I found I had to run 'man' in a terminal with exactly 80 columns.  I
found this out by using 'man --debug COMMAND' and saw:

  Terminal width 213
  Terminal width 213 not within cat page range [80, 80]

indicating the cache will only be used or created with 80 columns.  This
then generated a 'chown' error, and some apparmor errors.  I ended up
adding in usr.bin.man_filter and usr.bin.man_groff:

  /var/cache/man/** w,

but I also need to add this to usr.bin.man section:

  capability chown,
  capability fowner,
  capability fsetid,

With these changes, man no longer generates errors on the terminal, or
apparmor errors in the kernel logs.  This was tested by running 'man' as
root.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +

Reply via email to