Bug#894792: man-db: Permission denied running man as root

2018-04-04 Thread Colin Watson
Control: tag -1 fixed-upstream

On Wed, Apr 04, 2018 at 01:22:09PM +0200, Salvo Tomaselli wrote:
> Here it is

Thanks.  I've fixed your bug upstream, for the upcoming man-db 2.8.3:

  
https://git.savannah.gnu.org/cgit/man-db.git/commit/?id=c08cb8aedb7bb647e3f1ac6b9d009c0b174f8ba1

-- 
Colin Watson   [cjwat...@debian.org]



Bug#894792: man-db: Permission denied running man as root

2018-04-04 Thread Salvo Tomaselli
Here it is

2018-04-04 13:06 GMT+02:00 Colin Watson :
> On Wed, Apr 04, 2018 at 12:27:29PM +0200, Salvo Tomaselli wrote:
>> running man as root, while current working directory is inside the
>> home of a different user, this happens:
>>
>> root@mongibello /home/salvo # man man
>> man: can't change directory to '/home/salvo': Permesso negato
>> man: comando terminato con stato d'uscita 159: /usr/lib/man-db/zsoelim | 
>> /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e 
>> UTF-8 | tbl | nroff -mandoc -rLL=178n -rLT=178n -c -Tutf8
>
> I believe I have a fix for this.  However, I can't reproduce the
> problem, so I'd like to collect more information in order to make sure
> that I've really fixed it.  Could you please run "strace -f -o
> /root/man.trace -s 1024 man man" in the same environment, and attach the
> resulting /root/man.trace file?
>
> Thanks,
>
> --
> Colin Watson   [cjwat...@debian.org]



-- 
Salvo Tomaselli

"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
-- Galileo Galilei

http://ltworf.github.io/ltworf/


man.trace.bz2
Description: application/bzip


Bug#894792: man-db: Permission denied running man as root

2018-04-04 Thread Colin Watson
On Wed, Apr 04, 2018 at 12:27:29PM +0200, Salvo Tomaselli wrote:
> running man as root, while current working directory is inside the
> home of a different user, this happens:
> 
> root@mongibello /home/salvo # man man
> man: can't change directory to '/home/salvo': Permesso negato
> man: comando terminato con stato d'uscita 159: /usr/lib/man-db/zsoelim | 
> /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e 
> UTF-8 | tbl | nroff -mandoc -rLL=178n -rLT=178n -c -Tutf8

I believe I have a fix for this.  However, I can't reproduce the
problem, so I'd like to collect more information in order to make sure
that I've really fixed it.  Could you please run "strace -f -o
/root/man.trace -s 1024 man man" in the same environment, and attach the
resulting /root/man.trace file?

Thanks,

-- 
Colin Watson   [cjwat...@debian.org]



Bug#894792: man-db: Permission denied running man as root

2018-04-04 Thread Salvo Tomaselli
Package: man-db
Version: 2.8.2-1
Severity: normal

Dear Maintainer,

running man as root, while current working directory is inside the
home of a different user, this happens:

root@mongibello /home/salvo # man man
man: can't change directory to '/home/salvo': Permesso negato
man: comando terminato con stato d'uscita 159: /usr/lib/man-db/zsoelim | 
/usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e UTF-8 
| tbl | nroff -mandoc -rLL=178n -rLT=178n -c -Tutf8



Best

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to it_IT.UTF-8), LANGUAGE=it (charmap=UTF-8) (ignored: LC_ALL set to 
it_IT.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages man-db depends on:
ii  bsdmainutils   11.1.2
ii  debconf [debconf-2.0]  1.5.66
ii  dpkg   1.19.0.5
ii  groff-base 1.22.3-10
ii  libc6  2.27-3
ii  libgdbm5   1.14.1-6
ii  libpipeline1   1.5.0-1
ii  libseccomp22.3.1-2.1
ii  zlib1g 1:1.2.8.dfsg-5

man-db recommends no packages.

Versions of packages man-db suggests:
ii  apparmor2.12-4
ii  chromium [www-browser]  63.0.3239.84-1~deb9u1
pn  groff   
ii  less487-0.1

-- debconf information:
  man-db/auto-update: true
  man-db/install-setuid: false