From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 13 Jun 2006 16:52:58 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060613125258.GH25291@localhost.localdomain> Mail-Followup-To: ALT Devel discussion list References: <20060613100648.GF25291@localhost.localdomain> <20060613121333.GA15408@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wayzTnRSUXKNfBqd" Content-Disposition: inline In-Reply-To: <20060613121333.GA15408@basalt.office.altlinux.org> Subject: [devel] psec O_NOATIME X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 12:52:23 -0000 Archived-At: List-Archive: List-Post: --wayzTnRSUXKNfBqd Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 13, 2006 at 04:13:33PM +0400, Dmitry V. Levin wrote: > On Tue, Jun 13, 2006 at 02:06:48PM +0400, Alexey Tourbin wrote: > > =E9=DA cron.daily =CE=D5=D6=CE=CF =DA=C1=D0=D5=D3=CB=C1=D4=D8 =D0=D2=CF= =C7=D2=C1=CD=CD=D5 =CE=C1 =DB=C5=CC=CC=C5 (=D0=D2=C9=CD=C5=D2=CE=CF =CB=C1= =CB osec), > > =D0=D2=C9 =DC=D4=CF=CD =D6=C5=CC=C1=D4=C5=CC=D8=CE=CF =D7=D9=D0=CF=CC= =CE=D1=D4=D8 =D0=D2=CF=C7=D2=C1=CD=CD=D5 =CF=D4 =D0=D3=C5=D7=C4=CF=D0=CF=CC= =D8=DA=CF=D7=C1=D4=C5=CC=D1 =C9 > > =D3=C2=D2=CF=D3=C9=D4=D8 =D7=D3=C5 =D0=D2=C1=D7=C1, =CB=D2=CF=CD=C5 CAP= _DAC_READ_SEARCH (=CB=CF=D4=CF=D2=D9=C5 =C4=CF=CC=D6=CE=D9 =C2=D9=D4=D8 =CB= =C1=CB =D5 > > =D2=D5=D4=C1). =EB=C1=CB =DC=D4=CF =D3=C4=C5=CC=C1=D4=D8 =D3 =D0=CF=CD= =CF=DD=D8=C0 libcap-utils? > >=20 > > # sucap at at ls =20 > > Caps: =3Dep cap_setpcap-ep >=20 > =E2=C5=DA setpcap =D3 =D0=CF=CD=CF=DD=D8=C0 sucap =CE=C9=CB=C1=CB =CE=C5 = =D3=C4=C5=CC=C1=D4=D8. =F7 =CF=C2=DD=C5=CD =CE=C1=D0=C9=D3=C1=D4=D8 osec =CE=C1 =DB=C5=CC=CC=C5/= =D0=C5=D2=CC=C5 =C9 =DA=C1=D7=C5=D2=CE=D5=D4=D8 =C5=C7=CF =D7 qa-robot =CF=CB=C1=DA=C1=CC=CF=D3=D8 =CF=DE=C5=CE=D8 =D0=D2=CF=D3=D4=CF. # entry ::=3D filename mode uid gid arg # arg ::=3D md5sum | readlink | "x" psec() { find "$@" -print0 |perl -TMstrict -ln0 /dev/fd/3 3<<'__EOF__' use File::stat qw(lstat); use Fcntl qw(:mode); my $st =3D lstat($_) or die "psec: lstat: $_: $!\n"; my $arg =3D "x"; if (S_ISREG($st->mode)) { use Digest::MD5; our $ctx ||=3D Digest::MD5->new; open my $fh, "<", $_ or do { warn "psec: md5sum: $_: $!\n"; goto end; }; $arg =3D $ctx->addfile($fh)->hexdigest; } elsif (S_ISLNK($st->mode)) { $arg =3D readlink($_) or do { warn "psec: readlink: $_: $!\n"; goto end; }; $arg =3D~ s/[[:cntrl:]]/?/g; } end: s/[[:cntrl:]]/?/g; our (@uid_cache, @gid_cache); my $uid =3D $uid_cache[$st->uid] ||=3D getpwuid($st->uid) || $st->uid; my $gid =3D $gid_cache[$st->gid] ||=3D getgrgid($st->gid) || $st->gid; printf "%s\t%o\t%s\t%s\t%s\n", $_, $st->mode, $uid, $gid, $arg; __EOF__ } $ psec /lib |head find: /lib/modules: Permission denied /lib 40755 root root x /lib/i686 40755 root root x /lib/i686/tls 40755 root root x /lib/modules 40700 root root x /lib/tls 40755 root root x /lib/ld-linux.so.2 120777 root root ld-2.3.6.so /lib/libnss1_dns.so.1 120777 root root libnss1_dns-2.3.6.so /lib/terminfo 40755 root root x /lib/terminfo/E 40755 root root x /lib/terminfo/E/Eterm 100644 root root 9ba7faf9f179ae44dc488719ae9= 39ba9 $ =F4=C5=D0=C5=D2=D8 =CF=D3=D4=C1=CC=CF=D3=D8 =D4=CF=CC=D8=CB=CF =D0=D2=C9=C4= =D5=CD=C1=D4=D8, =CB=C1=CB =D0=D2=C1=D7=C9=CC=D8=CE=CF =D3=C2=D2=CF=D3=C9= =D4=D8 =C5=CD=D5 =D0=D2=C1=D7=C1. =E5=DD=A3 =C8=CF=D4=C5=CC=CF=D3=D8 =C2=D9 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=D4= =D8 O_NOATIME, =CE=CF =DC=D4=CF =D4=D2=C5=C2=D5=C5=D4 =D3=CC=C9=DB=CB=CF=CD= =C2=CF=CC=D8=DB=C9=C8 =D0=D2=C9=D7=C9=CC=C5=C7=C9=CA (CAP_FOWNER, =CB=C1=CB =D1 =D0=CF=CE=D1=CC = =C9=DA man capabilities). --wayzTnRSUXKNfBqd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEjrUqfBKgtDjnu0YRAh4tAJ9Y4oquscMlOQsneHs6goizxkSZQwCdEf+o 0hcM76WVpLDkW/+djzp3xvQ= =Vfgz -----END PGP SIGNATURE----- --wayzTnRSUXKNfBqd--