Date: Mon, 24 Mar 2014 18:26:21 +0100 From: =?ISO-8859-1?Q?Peter_Ankerst=E5l?= <peter@pean.org> To: jail@freebsd.org Subject: Problem running bsnmpd inside jail. Message-ID: <53306ABD.7010105@pean.org>
next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format. --------------ms000005010803020805020909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable (previously posted to stable) Hi! Im running a few jails on FreeBSD 10.0-RELEASE (amd64) but I cant get=20 bsnmpd to work inside a jail. It has worked in the past but that was FreeBSD 9. its a standard bsnmpd config without any large changes to the config.=20 The exact same configs works fine when run outside a jail. # /usr/sbin/bsnmpd -d -p /var/run/snmpd.pid snmpd[38890]: disk_OS_get_disks: adding device 'cd0' to device list snmpd[38890]: disk_OS_get_disks: adding device 'da2' to device list snmpd[38890]: disk_OS_get_disks: adding device 'da1' to device list snmpd[38890]: disk_OS_get_disks: adding device 'da0' to device list snmpd[38890]: Failed to connect socket for /var/run/devd.pipe: No such=20 file or directory snmpd[38890]: sendmsg: Invalid argument # I get these when i try = to snmpwalk. snmpd[38890]: sendmsg: Invalid argument snmpd[38890]: sendmsg: Invalid argument truss says: select(14,{4 12 13},{},{},{0.999936 }) =3D 0 (0x0) gettimeofday({1395507232.011776 },0x0) =3D 0 (0x0) gettimeofday({1395507232.011836 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.999940 }) =3D 0 (0x0) gettimeofday({1395507233.012739 },0x0) =3D 0 (0x0) gettimeofday({1395507233.012801 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.999938 }) =3D 1 (0x1) recvmsg(0xc,0x7fffffffac40,0x0,0x7fffffffaca0,0x801c23010,0x2) =3D 43 (0x= 2b) sigprocmask(SIG_BLOCK,0x0,0x0) =3D 0 (0x0) open("/etc/hosts.allow",O_RDONLY,0666) =3D 14 (0xe) fstat(14,{ mode=3D-rw-r--r-- ,inode=3D3849888,size=3D18,blksize=3D4096 })= =3D 0 (0x0) read(14,"ALL : ALL : allow\n",4096) =3D 18 (0x12) close(14) =3D 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) =3D 0 (0x0) gettimeofday({1395507233.562291 },0x0) =3D 0 (0x0) sendmsg(0xc,0x7ffffffe1120,0x0,0x5cea9fbe35c62e6e,0x3,0x2) ERR#22=20 'Invalid argument' clock_gettime(13,{1395507233.000000000 }) =3D 0 (0x0) getpid() =3D 38997 (0x9855) snmpd[38997]: sendmsg: Invalid argument writev(0x2,0x7ffffffe0320,0x2,0xffffffffffffffec,0x14,0x800f98370) =3D 40= =20 (0x28) sendto(8,"<11>Mar 22 17:53:53 snmpd[38997]"...,59,0x0,NULL,0x0) =3D 59 (0= x3b) gettimeofday({1395507233.562815 },0x0) =3D 0 (0x0) gettimeofday({1395507233.562869 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.449870 }) =3D 0 (0x0) gettimeofday({1395507234.041473 },0x0) =3D 0 (0x0) gettimeofday({1395507234.041535 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.948960 }) =3D 1 (0x1) recvmsg(0xc,0x7fffffffac40,0x0,0x7fffffffaca0,0x64,0x0) =3D 43 (0x2b) sigprocmask(SIG_BLOCK,0x0,0x0) =3D 0 (0x0) open("/etc/hosts.allow",O_RDONLY,0666) =3D 14 (0xe) fstat(14,{ mode=3D-rw-r--r-- ,inode=3D3849888,size=3D18,blksize=3D4096 })= =3D 0 (0x0) read(14,"ALL : ALL : allow\n",4096) =3D 18 (0x12) close(14) =3D 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) =3D 0 (0x0) gettimeofday({1395507234.567052 },0x0) =3D 0 (0x0) sendmsg(0xc,0x7ffffffe1120,0x0,0x5cea9fbe35c62e6e,0x3,0x2) ERR#22=20 'Invalid argument' clock_gettime(13,{1395507234.000000000 }) =3D 0 (0x0) getpid() snmpd[38997]: sendmsg: Invalid argument writev(0x2,0x7ffffffe0320,0x2,0xffffffffffffffec,0x14,0x800f98370) =3D 40= =20 (0x28) sendto(8,"<11>Mar 22 17:53:54 snmpd[38997]"...,59,0x0,NULL,0x0) =3D 59 (0= x3b) gettimeofday({1395507234.567457 },0x0) =3D 0 (0x0) gettimeofday({1395507234.567512 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.422983 }) =3D 0 (0x0) gettimeofday({1395507235.010734 },0x0) =3D 0 (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x8030855ea,0x1= 7)=20 =3D 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) =3D 0 = (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x803085602,0x1= 8)=20 =3D 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) =3D 0 = (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x80308561b,0x1= 3)=20 =3D 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) =3D 0 = (0x0) __sysctl(0x7fffffffafc0,0x2,0x7fffffffb000,0x7fffffffaff8,0x80308562f,0x1= 4)=20 =3D 0 (0x0) __sysctl(0x7fffffffb000,0x4,0x7fffffffb0d8,0x7fffffffb0a8,0x0,0x0) =3D 0 = (0x0) __sysctl(0x7fffffffafe0,0x2,0x7fffffffb020,0x7fffffffb018,0x803085644,0xc= )=20 =3D 0 (0x0) __sysctl(0x7fffffffb020,0x2,0x803294a00,0x7fffffffb0e0,0x0,0x0) =3D 0 (0x= 0) gettimeofday({1395507235.011369 },0x0) =3D 0 (0x0) clock_gettime(4,{335225.177478505 }) =3D 0 (0x0) __sysctl(0x7fffffffac20,0x2,0x7fffffffac60,0x7fffffffac58,0x803c03cf3,0x1= 4)=20 =3D 0 (0x0) __sysctl(0x7fffffffac60,0x3,0x7fffffffad04,0x7fffffffad08,0x0,0x0) =3D 0 = (0x0) __sysctl(0x7fffffffac80,0x2,0x7fffffffacc0,0x7fffffffacb8,0x803c03efb,0x1= 0)=20 =3D 0 (0x0) __sysctl(0x7fffffffacc0,0x3,0x801c99600,0x7fffffffad98,0x0,0x0) =3D 0 (0x= 0) __sysctl(0x7fffffffac20,0x2,0x7fffffffac60,0x7fffffffac58,0x803c03cf3,0x1= 4)=20 =3D 0 (0x0) __sysctl(0x7fffffffac60,0x3,0x7fffffffad04,0x7fffffffad08,0x0,0x0) =3D 0 = (0x0) gettimeofday({1395507235.011811 },0x0) =3D 0 (0x0) gettimeofday({1395507235.011868 },0x0) =3D 0 (0x0) gettimeofday({1395507235.011915 },0x0) =3D 0 (0x0) gettimeofday({1395507235.011959 },0x0) =3D 0 (0x0) open("/dev/null",O_CLOEXEC,00) =3D 14 (0xe) fstat(14,{ mode=3Dcrw-rw-rw- ,inode=3D20,size=3D0,blksize=3D4096 }) =3D 0= (0x0) open("/dev/null",O_CLOEXEC,00) =3D 15 (0xf) __sysctl(0x7fffffffa880,0x3,0x0,0x7fffffffa870,0x0,0x0) =3D 0 (0x0) __sysctl(0x7fffffffa880,0x3,0x801d92000,0x7fffffffa870,0x0,0x0) =3D 0 (0x= 0) close(14) =3D 0 (0x0) close(15) =3D 0 (0x0) gettimeofday({1395507235.015009 },0x0) =3D 0 (0x0) gettimeofday({1395507235.015057 },0x0) =3D 0 (0x0) gettimeofday({1395507235.015106 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.026367 }) =3D 0 (0x0) gettimeofday({1395507235.043455 },0x0) =3D 0 (0x0) gettimeofday({1395507235.043505 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.999950 }) =3D 0 (0x0) gettimeofday({1395507236.062471 },0x0) =3D 0 (0x0) gettimeofday({1395507236.062525 },0x0) =3D 0 (0x0) select(14,{4 12 13},{},{},{0.999946 }) =3D 0 (0x0) gettimeofday({1395507237.065759 },0x0) =3D 0 (0x0) gettimeofday({1395507237.065819 },0x0) =3D 0 (0x0) ^Cselect(14,{4 12 13},{},{},{0.999940 }) ERR#4=20 'Interrupted system call' SIGNAL 2 (SIGINT) unlink("/var/run/snmpd.pid") =3D 0 (0x0) lstat("/var/run/snmpd.sock",{ mode=3Dsrw-rw-rw-=20 ,inode=3D4965221,size=3D0,blksize=3D131072 }) =3D 0 (0x0) unlink("/var/run/snmpd.sock") =3D 0 (0x0) --------------ms000005010803020805020909 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMbzCC BjMwggUboAMCAQICAwiyiDANBgkqhkiG9w0BAQUFADCBjDELMAkGA1UEBhMCSUwxFjAUBgNV BAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRl IFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlh dGUgQ2xpZW50IENBMB4XDTE0MDEyMDA3NTIzOFoXDTE1MDEyMTA4NTkyMVowUzEZMBcGA1UE DRMQMWlGRkxHbTV3RmVTWjZ6OTEXMBUGA1UEAwwOcGV0ZXJAcGVhbi5vcmcxHTAbBgkqhkiG 9w0BCQEWDnBldGVyQHBlYW4ub3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA zoKHiOE9vdQgax/GZyTaqtNvfjGIHwG1tsMOXZELs49KJY66oD//szW3yoIl8nQapUBn+hZq s3QT5PxqfElXxljYszYE6yk3kWR7EVtlIEfT7Pf24XlFw4uzoZzEjaxPJBt4+BWwb1MpqBmw TNZwZGYI9SO6JW23G9o+e+hPmlXFTovW9B36J0M2Qu0+IE6MsDIG0y5Cw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naXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYD VQQDEy9TdGFydENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQQID CLKIMIGnBgsqhkiG9w0BCRACCzGBl6CBlDCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0 YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25p bmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xp ZW50IENBAgMIsogwDQYJKoZIhvcNAQEBBQAEggEAKWJE+veH6V0M28SArb9qItT44jrjB/n1 5uGIrtDkk/ErlXtXUk0rprFz0pR0z8lUtP6jUGxk07QRFt6gF0ASPJXnNFR2Tyqucy6WaL2c oeqpdeg8IqxgjbCpxp1fjeec97Etp6E1wk4q5lSvGgfTHOtGq7Fh05nyt1pkPhN6Woi7o5ww 6ksMj0soW7dQBFS6132QlnZ31cpogVAauLIk30PCNOGFHLfcULzno4Ruwiu+gqwCVQ7Dt38k gRMWs7IL0Ec5d7fZcNpwDDMzvACR4omUfAEbWhECZ310F8d1jWwWjChVV9XEpzlfVecVtN5q elUvy+bCxTCVsBlz6BxT8gAAAAAAAA== --------------ms000005010803020805020909--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53306ABD.7010105>