Bug#865368: torsocks: procmail spawned by mpop in torsocks fails with "Operation not permitted"
Hi Nick, does this still occur? It could be a problem related to multiprocesses in which procmail does "socket passing" and which torsocks might not handle well, or at all. mpop seems to have examples working with Tor though: https://www.mankier.com/1/mpop#Examples Have you contacted the authors of this software to ask for advice? Cheers! u.
Bug#865368: torsocks: procmail spawned by mpop in torsocks fails with "Operation not permitted"
Control: tag -1 - moreinfo Control: tag -1 forwarded dgou...@ev0ke.net Hi David! Can you please have a look at this bug report? Full discussion and debug log: https://bugs.debian.org/865368 Please let us know if you need additional info :) Nick: >> 1. try to reproduce with torsocks 2.2.0-2 (that landed in sid >>yesterday); > I can reproduce exactly the same thing with 2.2.0-2 >> 2. if this still fails, retry with `torsocks --debug' so I have more >>information to forward upstream. > Done, log attached. > 1503579551 DEBUG torsocks[29232]: Logging subsytem initialized. Level 5, file > (null), time 1 (in init_logging() at torsocks.c:303) > 1503579551 DEBUG torsocks[29232]: Config file not provided by > TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in > config_file_read() at config-file.c:543) > 1503579551 DEBUG torsocks[29232]: Config file setting tor address to > 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298) > 1503579551 DEBUG torsocks[29232]: Config file setting tor port to 9050 (in > conf_file_set_tor_port() at config-file.c:254) > 1503579551 DEBUG torsocks[29232]: [config] Onion address range set to > 127.42.42.0/24 (in set_onion_info() at config-file.c:108) > 1503579551 DEBUG torsocks[29232]: Config file /etc/tor/torsocks.conf opened > and parsed. (in config_file_read() at config-file.c:572) > 1503579551 DEBUG torsocks[29232]: [fclose] Close caught for fd 3 (in > tsocks_fclose() at fclose.c:45) > 1503579551 DEBUG torsocks[29232]: [onion] Pool init with subnet 127.42.42.0 > and mask 24 (in onion_pool_init() at onion.c:104) > 1503579551 DEBUG torsocks[29232]: [onion] Pool initialized with base 0, > max_pos 255 and size 8 (in onion_pool_init() at onion.c:132) > 1503579551 DEBUG torsocks[29232]: [fclose] Close caught for fd 3 (in > tsocks_fclose() at fclose.c:45) > 1503579551 DEBUG torsocks[29236]: Logging subsytem initialized. Level 5, file > (null), time 1 (in init_logging() at torsocks.c:303) > 1503579551 DEBUG torsocks[29236]: Config file not provided by > TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in > config_file_read() at config-file.c:543) > 1503579551 DEBUG torsocks[29236]: Config file setting tor address to > 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298) > 1503579551 DEBUG torsocks[29236]: Config file setting tor port to 9050 (in > conf_file_set_tor_port() at config-file.c:254) > 1503579551 DEBUG torsocks[29236]: [config] Onion address range set to > 127.42.42.0/24 (in set_onion_info() at config-file.c:108) > 1503579551 DEBUG torsocks[29236]: Config file /etc/tor/torsocks.conf opened > and parsed. (in config_file_read() at config-file.c:572) > 1503579551 DEBUG torsocks[29236]: [fclose] Close caught for fd 3 (in > tsocks_fclose() at fclose.c:45) > 1503579551 DEBUG torsocks[29236]: [onion] Pool init with subnet 127.42.42.0 > and mask 24 (in onion_pool_init() at onion.c:104) > 1503579551 DEBUG torsocks[29236]: [onion] Pool initialized with base 0, > max_pos 255 and size 8 (in onion_pool_init() at onion.c:132) > 1503579551 DEBUG torsocks[29236]: [close] Close caught for fd 0 (in > tsocks_close() at close.c:33) > 1503579551 DEBUG torsocks[29236]: [close] Close caught for fd 3 (in > tsocks_close() at close.c:33) > 1503579551 DEBUG torsocks[29237]: Logging subsytem initialized. Level 5, file > (null), time 1 (in init_logging() at torsocks.c:303) > 1503579551 DEBUG torsocks[29237]: Config file not provided by > TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in > config_file_read() at config-file.c:543) > 1503579551 DEBUG torsocks[29237]: Config file setting tor address to > 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298) > 1503579551 DEBUG torsocks[29237]: Config file setting tor port to 9050 (in > conf_file_set_tor_port() at config-file.c:254) > 1503579551 DEBUG torsocks[29237]: [config] Onion address range set to > 127.42.42.0/24 (in set_onion_info() at config-file.c:108) > 1503579551 DEBUG torsocks[29237]: Config file /etc/tor/torsocks.conf opened > and parsed. (in config_file_read() at config-file.c:572) > 1503579551 DEBUG torsocks[29237]: [fclose] Close caught for fd 3 (in > tsocks_fclose() at fclose.c:45) > 1503579551 DEBUG torsocks[29237]: [onion] Pool init with subnet 127.42.42.0 > and mask 24 (in onion_pool_init() at onion.c:104) > 1503579551 DEBUG torsocks[29237]: [onion] Pool initialized with base 0, > max_pos 255 and size 8 (in onion_pool_init() at onion.c:132) > 1503579551 DEBUG torsocks[29237]: [close] Close caught for fd 3 (in > tsocks_close() at close.c:33) > 1503579551 DEBUG torsocks[29237]: [close] Close caught for fd 3 (in > tsocks_close() at close.c:33) > 1503579551 DEBUG torsocks[29237]: [onion] Destroying onion pool containing 0 > entry (in onion_pool_destroy() at onion.c:148) > 1503579551 DEBUG torsocks[29237]: [fclose] Close caught for fd 2 (in > tsocks_fclose() at fclose.c:45) > 1503579551 DEBUG torsocks[29236]: [close] Close caught for fd
Bug#865368: torsocks: procmail spawned by mpop in torsocks fails with "Operation not permitted"
Hi intrigeri, thanks for looking into this. > 1. try to reproduce with torsocks 2.2.0-2 (that landed in sid >yesterday); I can reproduce exactly the same thing with 2.2.0-2 > 2. if this still fails, retry with `torsocks --debug' so I have more >information to forward upstream. Done, log attached. 1503579551 DEBUG torsocks[29232]: Logging subsytem initialized. Level 5, file (null), time 1 (in init_logging() at torsocks.c:303) 1503579551 DEBUG torsocks[29232]: Config file not provided by TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in config_file_read() at config-file.c:543) 1503579551 DEBUG torsocks[29232]: Config file setting tor address to 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298) 1503579551 DEBUG torsocks[29232]: Config file setting tor port to 9050 (in conf_file_set_tor_port() at config-file.c:254) 1503579551 DEBUG torsocks[29232]: [config] Onion address range set to 127.42.42.0/24 (in set_onion_info() at config-file.c:108) 1503579551 DEBUG torsocks[29232]: Config file /etc/tor/torsocks.conf opened and parsed. (in config_file_read() at config-file.c:572) 1503579551 DEBUG torsocks[29232]: [fclose] Close caught for fd 3 (in tsocks_fclose() at fclose.c:45) 1503579551 DEBUG torsocks[29232]: [onion] Pool init with subnet 127.42.42.0 and mask 24 (in onion_pool_init() at onion.c:104) 1503579551 DEBUG torsocks[29232]: [onion] Pool initialized with base 0, max_pos 255 and size 8 (in onion_pool_init() at onion.c:132) 1503579551 DEBUG torsocks[29232]: [fclose] Close caught for fd 3 (in tsocks_fclose() at fclose.c:45) 1503579551 DEBUG torsocks[29236]: Logging subsytem initialized. Level 5, file (null), time 1 (in init_logging() at torsocks.c:303) 1503579551 DEBUG torsocks[29236]: Config file not provided by TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in config_file_read() at config-file.c:543) 1503579551 DEBUG torsocks[29236]: Config file setting tor address to 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298) 1503579551 DEBUG torsocks[29236]: Config file setting tor port to 9050 (in conf_file_set_tor_port() at config-file.c:254) 1503579551 DEBUG torsocks[29236]: [config] Onion address range set to 127.42.42.0/24 (in set_onion_info() at config-file.c:108) 1503579551 DEBUG torsocks[29236]: Config file /etc/tor/torsocks.conf opened and parsed. (in config_file_read() at config-file.c:572) 1503579551 DEBUG torsocks[29236]: [fclose] Close caught for fd 3 (in tsocks_fclose() at fclose.c:45) 1503579551 DEBUG torsocks[29236]: [onion] Pool init with subnet 127.42.42.0 and mask 24 (in onion_pool_init() at onion.c:104) 1503579551 DEBUG torsocks[29236]: [onion] Pool initialized with base 0, max_pos 255 and size 8 (in onion_pool_init() at onion.c:132) 1503579551 DEBUG torsocks[29236]: [close] Close caught for fd 0 (in tsocks_close() at close.c:33) 1503579551 DEBUG torsocks[29236]: [close] Close caught for fd 3 (in tsocks_close() at close.c:33) 1503579551 DEBUG torsocks[29237]: Logging subsytem initialized. Level 5, file (null), time 1 (in init_logging() at torsocks.c:303) 1503579551 DEBUG torsocks[29237]: Config file not provided by TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in config_file_read() at config-file.c:543) 1503579551 DEBUG torsocks[29237]: Config file setting tor address to 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298) 1503579551 DEBUG torsocks[29237]: Config file setting tor port to 9050 (in conf_file_set_tor_port() at config-file.c:254) 1503579551 DEBUG torsocks[29237]: [config] Onion address range set to 127.42.42.0/24 (in set_onion_info() at config-file.c:108) 1503579551 DEBUG torsocks[29237]: Config file /etc/tor/torsocks.conf opened and parsed. (in config_file_read() at config-file.c:572) 1503579551 DEBUG torsocks[29237]: [fclose] Close caught for fd 3 (in tsocks_fclose() at fclose.c:45) 1503579551 DEBUG torsocks[29237]: [onion] Pool init with subnet 127.42.42.0 and mask 24 (in onion_pool_init() at onion.c:104) 1503579551 DEBUG torsocks[29237]: [onion] Pool initialized with base 0, max_pos 255 and size 8 (in onion_pool_init() at onion.c:132) 1503579551 DEBUG torsocks[29237]: [close] Close caught for fd 3 (in tsocks_close() at close.c:33) 1503579551 DEBUG torsocks[29237]: [close] Close caught for fd 3 (in tsocks_close() at close.c:33) 1503579551 DEBUG torsocks[29237]: [onion] Destroying onion pool containing 0 entry (in onion_pool_destroy() at onion.c:148) 1503579551 DEBUG torsocks[29237]: [fclose] Close caught for fd 2 (in tsocks_fclose() at fclose.c:45) 1503579551 DEBUG torsocks[29236]: [close] Close caught for fd 10 (in tsocks_close() at close.c:33) 1503579551 DEBUG torsocks[29236]: [onion] Destroying onion pool containing 0 entry (in onion_pool_destroy() at onion.c:148) 1503579551 DEBUG torsocks[29236]: [fclose] Close caught for fd 2 (in tsocks_fclose() at fclose.c:45) 1503579551 DEBUG torsocks[29232]: [fclose] Close caught for fd 3 (in tsocks_fclose() at
Bug#865368: torsocks: procmail spawned by mpop in torsocks fails with "Operation not permitted"
Control: tag -1 + moreinfo Hi Nick! Please: 1. try to reproduce with torsocks 2.2.0-2 (that landed in sid yesterday); 2. if this still fails, retry with `torsocks --debug' so I have more information to forward upstream. Thanks in advance! Cheers, -- intrigeri
Bug#865368: torsocks: procmail spawned by mpop in torsocks fails with "Operation not permitted"
Package: torsocks Version: 2.2.0-1 Severity: normal Dear Maintainer, I use procmail as my mda in mpop, with this line in the config file (as suggested in the documentation): delivery mda /usr/bin/procmail -f '%F' -d $USER Running 'torsocks mpop' fails if there are any mails waiting to be collected, with the (example) output: new: 1 message in 31.02 KiB, total: 1 message in 31.02 KiB retrieving message 1 of 1 (31.02 KiB): sh: 1: /usr/bin/procmail: Operation not permitted 38 mpop: cannot write mail: output error mpop: error during mail retrieval (account default from /home/nick/.mpoprc) This only started happening when I upgraded to stretch, in jessie this worked perfectly. Running mpop not through torsocks works fine, and torsocks can write to files generally (tested with 'torsocks wget debian.org') -- System Information: Debian Release: 9.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.10-ph+ (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages torsocks depends on: ii libc6 2.24-11+deb9u1 Versions of packages torsocks recommends: ii tor 0.2.9.11-1~deb9u1 torsocks suggests no packages. -- no debconf information