[Linux-Biella] Systrace
MauroTB
linux@bilug.linux.it
Tue, 3 Dec 2002 17:30:51 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_002B_01C29AF1.B9D5FD40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sto provando a testare systrace.
Magari qualcuno di voi lo ha gi=E0 utilizzato e mi sa dare una mano.
Ho implementato le regole per qmail-smtpd e queste sono ok.
Il mio =E8 un problema di permessi ovvero io lancio qmail-smtpd in =
questo modo
exec \
envuidgid qmaild \
tcpserver -DRUvX -c "$concurrency" -l "`head -1 /var/qmail/control/me`" =
\
-x /etc/tcpcontrol/smtp.cdb 0 smtp \
systrace -a -i -d /etc/systrace /var/qmail/bin/qmail-smtpd =
vmail1.2000net.it /home/vpopmail/bin/vchkpw /bin/true
Il problema =E8 che systrace viene lanciato con i permessi i qmaild e =
quindi non pu=F2 scrivere su /dev/systrace.
Non voglio dare al demone i permessi di root,e non voglio rendere =
/dev/systrace accessibile in scrittura, come posso fare?
Tnx
------=_NextPart_000_002B_01C29AF1.B9D5FD40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><SPAN class=3D356302716-03122002><FONT face=3DArial size=3D2>Sto =
provando a=20
testare systrace.</FONT></SPAN></DIV>
<DIV><SPAN class=3D356302716-03122002><FONT face=3DArial size=3D2>Magari =
qualcuno di=20
voi lo ha gi=E0 utilizzato e mi sa dare una mano.</FONT></SPAN></DIV>
<DIV><SPAN class=3D356302716-03122002></SPAN> </DIV>
<DIV><SPAN class=3D356302716-03122002>Ho implementato le regole per =
qmail-smtpd e=20
queste sono ok.</SPAN></DIV>
<DIV><SPAN class=3D356302716-03122002>Il mio =E8 un problema di permessi =
ovvero io=20
lancio qmail-smtpd in questo modo</SPAN></DIV>
<DIV><SPAN class=3D356302716-03122002></SPAN> </DIV>
<DIV><SPAN class=3D356302716-03122002></SPAN> </DIV>
<DIV>exec \<BR>envuidgid qmaild \<BR>tcpserver -DRUvX -c "$concurrency" =
-l=20
"`head -1 /var/qmail/control/me`" \<BR>-x /etc/tcpcontrol/smtp.cdb 0 =
smtp=20
\<BR>systrace -a -i -d /etc/systrace /var/qmail/bin/qmail-smtpd=20
vmail1.2000net.it /home/vpopmail/bin/vchkpw /bin/true<BR></DIV>
<DIV>Il problema =E8 che systrace viene lanciato con i permessi i qmaild =
e quindi=20
non pu=F2 scrivere su /dev/systrace.</DIV>
<DIV>Non voglio dare al demone i permessi di root,e non voglio rendere=20
/dev/systrace accessibile in scrittura, come posso fare?</DIV>
<DIV> </DIV>
<DIV>Tnx</DIV>
<SCRIPT language=3DJavaScript>
<!--=20
yourLogo=3D'Mauro Celli (work in progress...) 2000Net';
logoFont=3D'Arial';
logoSize=3D3;=20
logoColor=3D'#0042A4';
logoWidth=3D200;
logoHeight=3D30;
logoSpeed=3D0.02;
//Nothing needs altering below!
yourLogo=3DyourLogo.split('');
L=3DyourLogo.length;=20
Result=3D"<font face=3D"+logoFont+" size=3D"+logoSize+" =
color=3D"+logoColor+">";
TrigSplit=3D360/L;
br=3D(document.layers)?1:0;
if (br){
for (i=3D0; i < L; i++)
document.write('<layer name=3D"ns'+i+'" top=3D0 left=3D0 width=3D14 =
height=3D14">'+Result+yourLogo[i]+'</font></layer>');
}
else{
document.write('<div id=3D"outer" =
style=3D"position:absolute;top:0px;left:0px"><div =
style=3D"position:relative">');
for (i=3D0; i < L; i++)
document.write('<div id=3D"ie" =
style=3D"position:absolute;top:0px;left:0px;width:14px;height:14px">'+Res=
ult+yourLogo[i]+'</font></div>');
document.write('</div></div>');
}
ypos=3D0;
xpos=3D0;
step=3DlogoSpeed;
currStep=3D0;
Y=3Dnew Array();
X=3Dnew Array();
Yn=3Dnew Array();
Xn=3Dnew Array();
for (i=3D0; i < L; i++)=20
{
Yn[i]=3D0;
Xn[i]=3D0;
}
(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ypos =3D (document.layers)?evnt.pageY:event.y;
xpos =3D (document.layers)?evnt.pageX:event.x;
}
(document.layers)?window.onMouseMove=3DMouse:document.onmousemove=3DMouse=
;
function animateLogo(){
if (!br)outer.style.pixelTop=3Ddocument.body.scrollTop;=20
for (i=3D0; i < L; i++){
var layer=3D(document.layers)?document.layers['ns'+i]:ie[i].style;
layer.top =3DY[i]+logoHeight*Math.sin(currStep+i*TrigSplit*Math.PI/180);
layer.left=3DX[i]+logoWidth*Math.cos(currStep+i*TrigSplit*Math.PI/180);
}
currStep-=3Dstep;
}
function Delay(){
for (i=3DL; i >=3D 0; i--)
{
Y[i]=3DYn[i]+=3D(ypos-Yn[i])*(0.1+i/L); =20
X[i]=3DXn[i]+=3D(xpos-Xn[i])*(0.1+i/L); =20
}
animateLogo();
setTimeout('Delay()',20);
}
window.onload=3DDelay;
// -->
</SCRIPT>
</FONT></DIV></BODY></HTML>
------=_NextPart_000_002B_01C29AF1.B9D5FD40--