netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [2.6.25-rc5-mm1] regression: cannot run Postfix sendmail command as non-root
           [not found] <20080311011434.ad8c8d7d.akpm@linux-foundation.org>
           [not found] ` <20080311202300.GA8957@vino.hallyn.com>
    @ 2008-03-13 19:48 ` Tilman Schmidt
      2008-03-13 22:21   ` Daniel Lezcano
      2008-03-19 17:52   ` Benjamin Thery
      1 sibling, 2 replies; 24+ messages in thread
    From: Tilman Schmidt @ 2008-03-13 19:48 UTC (permalink / raw)
      To: Andrew Morton; +Cc: linux-kernel, netdev, David Miller, pekkas, yoshfuji
    
    [-- Attachment #1: Type: text/plain, Size: 3391 bytes --]
    
    Am 11.03.2008 09:14 schrieb Andrew Morton:
    > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.25-rc5/2.6.25-rc5-mm1/
    
    I'm noticing a strange effect with this:
    
    On my openSUSE 10.3 development machine with SUSEs default MTA
    Postfix installed, I occasionally send a pre-formatted mail by
    feeding it directly into "/usr/sbin/sendmail -t". If I try that
    while running a 2.6.25-rc5-mm1 kernel, I get:
    
    ts@xenon:~/kernel> /usr/sbin/sendmail -t < patch-usb-reduce-syslog-clutter-v3
    postdrop: warning: can't open /proc/net/if_inet6 (Permission denied) - skipping IPv6 configuration
    postdrop: fatal: parameter inet_interfaces: no local interface found for ::1
    sendmail: warning: command "/usr/sbin/postdrop -r" exited with status 1
    sendmail: fatal: ts(1000): unable to execute /usr/sbin/postdrop -r: Success
    ts@xenon:~/kernel>
    
    and unsurprisingly, the mail is not sent. If I do the same as root,
    everything works as usual, there is no console output from the
    sendmail command, and the mail goes out as it should. All other
    networking applications appear to be running normally.
    
    On a 2.6.25-rc5 (non-mm) kernel I do not need to run the sendmail
    command as root. It works just as well if I run it as myself.
    
    IPv6 is not in use on that machine. The Ethernet interface has
    just the link local IPv6 address. Possibly relevant information:
    
    ts@xenon:~> /sbin/ifconfig -a
    eth0      Protokoll:Ethernet  Hardware Adresse 00:19:D1:03:D8:FF
              inet Adresse:192.168.59.102  Bcast:192.168.59.255  Maske:255.255.255.0
              inet6 Adresse: fe80::219:d1ff:fe03:d8ff/64 Gültigkeitsbereich:Verbindung
              UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:78 errors:0 dropped:0 overruns:0 frame:0
              TX packets:145 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Sendewarteschlangenlänge:100
              RX bytes:9547 (9.3 Kb)  TX bytes:17952 (17.5 Kb)
              Speicher:92c00000-92c20000
    
    lo        Protokoll:Lokale Schleife
              inet Adresse:127.0.0.1  Maske:255.0.0.0
              inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Sendewarteschlangenlänge:0
              RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)
    
    ts@xenon:~/kernel> ls -l /proc/net/if_inet6
    -r--r--r-- 1 root root 0 13. Mär 19:26 /proc/net/if_inet6
    ts@xenon:~> cat /proc/net/if_inet6
    fe800000000000000219d1fffe03d8ff 02 40 20 80     eth0
    00000000000000000000000000000001 01 80 10 80       lo
    ts@xenon:~> uname -a
    Linux xenon 2.6.25-rc5-mm1-testing #1 SMP PREEMPT Tue Mar 11 14:34:49 CET 2008 i686 i686 i386 GNU/Linux
    
    As you see, I can cat /proc/net/if_inet6 as regular (non-root) user
    just fine, even though Postfix complains it cannot access it.
    The content of /proc/net/if_inet6 is identical if I cat it on
    kernel 2.6.25-rc5 mainline.
    
    CCing a selection of IPv6 networking related maintainer addresses.
    If you need more information or want me to test something, let me
    know.
    
    HTH
    T.
    
    -- 
    Tilman Schmidt                          E-Mail: tilman@imap.cc
    Bonn, Germany
    Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
    Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
    
    
    [-- Attachment #2: OpenPGP digital signature --]
    [-- Type: application/pgp-signature, Size: 253 bytes --]
    
    ^ permalink raw reply	[flat|nested] 24+ messages in thread

  • end of thread, other threads:[~2008-03-21 12:12 UTC | newest]
    
    Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20080311011434.ad8c8d7d.akpm@linux-foundation.org>
         [not found] ` <20080311202300.GA8957@vino.hallyn.com>
         [not found]   ` <20080311133920.68dc410b.akpm@linux-foundation.org>
         [not found]     ` <64bb37e0803121233v30d12a58i77a1e23fd02ea6f2@mail.gmail.com>
    2008-03-12 19:44       ` 2.6.25-rc5-mm1 Andrew Morton
    2008-03-12 20:01         ` 2.6.25-rc5-mm1 Torsten Kaiser
    2008-03-13 22:05           ` 2.6.25-rc5-mm1 Torsten Kaiser
    2008-03-13 22:35             ` 2.6.25-rc5-mm1 Andrew Morton
    2008-03-13 23:10               ` 2.6.25-rc5-mm1 Badari Pulavarty
    2008-03-21 12:12                 ` 2.6.25-rc5-mm1 Ingo Molnar
    2008-03-13 19:48 ` [2.6.25-rc5-mm1] regression: cannot run Postfix sendmail command as non-root Tilman Schmidt
    2008-03-13 22:21   ` Daniel Lezcano
    2008-03-14  0:08     ` Tilman Schmidt
    2008-03-17 10:44       ` Daniel Lezcano
    2008-03-17 12:50         ` Benjamin Thery
    2008-03-17 13:35           ` Tilman Schmidt
    2008-03-17 13:06         ` Tilman Schmidt
    2008-03-17 13:17           ` Daniel Lezcano
    2008-03-19 17:52   ` Benjamin Thery
    2008-03-19 21:16     ` Andrew Morton
    2008-03-19 22:14       ` Benjamin Thery
    2008-03-19 22:49       ` David Miller
    2008-03-20  8:26         ` Benjamin Thery
    2008-03-20 10:21           ` Rafael J. Wysocki
    2008-03-20 12:52             ` Pavel Emelyanov
    2008-03-20 13:48               ` Benjamin Thery
    2008-03-20 14:38                 ` Rafael J. Wysocki
    2008-03-19 23:31       ` Tilman Schmidt
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).