From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 18 May 2006 16:17:59 +0400 From: "Dmitry V. Levin" To: ALT Linux Sisyphus discussion list Message-ID: <20060518121759.GA23118@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Sisyphus discussion list References: <200605172052.50799.sisyphus@atlantic-link.com.ua> <20060517220725.GC32249@basalt.office.altlinux.org> <200605181437.18197.sisyphus@atlantic-link.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <200605181437.18197.sisyphus@atlantic-link.com.ua> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [sisyphus] temporary root privileges from local process X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 12:17:59 -0000 Archived-At: List-Archive: List-Post: --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 18, 2006 at 02:37:18PM +0300, Vadym Kononenko wrote: > =DE=C5=D4=D7=C5=D2 18 =D4=D2=C1=D7=C5=CE=D8 2006 01:07, Dmitry V. Levin = =CE=C1=D0=C9=D3=C1=D7: > > =EC=D5=DE=DB=C5, =C5=D3=CC=C9 =CE=C5=CB=C1=D1 =D3=CC=D5=D6=C2=C1 =C2=D5= =C4=C5=D4 =D3=C1=CD=C1 =D0=D2=C9=CE=C9=CD=C1=D4=D8 =DA=C1=D0=D2=CF=D3=D9 = =CE=C1 > > =D0=C5=D2=C5=CB=CF=CE=C6=C9=C7=D5=D2=C9=D2=CF=D7=C1=CE=C9=C5 =C9 =D0=C5= =D2=C5=DA=C1=D0=D5=D3=CB =D3=CF =D3=D4=CF=D2=CF=CE=D9 =CE=C5=D0=D2=C9=D7=C9= =CC=C5=C7=C9=D2=CF=D7=C1=CE=CE=D9=C8 =CB=CC=C9=C5=CE=D4=CF=D7, > > =CE=C1=D0=D2=C9=CD=C5=D2, =DE=C5=D2=C5=DA unix domain socket. > .. =CD=C5=DE=D4=C1=D4=D8 =CE=C5 =D7=D2=C5=C4=CE=CF... :) >=20 > =F3=D0=C1=D3=C9=C2=CF =DA=C1 =CF=D4=D7=C5=D4. > =EF=D3=D4=C1=CE=CF=D7=C9=CC=D3=D1 =CE=C1 =D0=C5=D2=D7=CF=CD =D7=C1=D2=C9= =C1=CE=D4=C5, =C4=D5=CD=C1=C0, =CD=CE=CF=C7=CF =D7=D2=C5=C4=C1 =D4=C1=CB=C1= =D1 =D0=D2=CF=C7=D2=C1=CD=CD=C1 =CE=C5=20 > =CE=C1=C4=C5=CC=C1=C5=D4: :) >=20 > #include > #include >=20 > int main() > { > if (geteuid() !=3D 0) exit(1); >=20 > setuid(0); >=20 > return system("/sbin/service bluetooth reload"); > } =FC=D4=CF instant root, =D4.=C5. =DA=C1=D0=D5=D3=CB=C1=C0=DD=C9=CA =DC=D4= =D5 =D0=D2=C9=D7=C9=CC=C5=C7=C9=D2=CF=D7=C1=CE=CE=D5=C0 =D0=D2=CF=C7=D2=C1= =CD=CD=D5 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 =CD=CF=D6=C5=D4 =CE=C5 =CE=C1=D0=D2=D1= =C7=C1=D1=D3=D8 =D0=CF=CC=D5=DE=C9=D4=D8 =D0=D2=C1=D7=C1 setuid(0). --=20 ldv --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEbGX2fKvmrJ41Nh4RAiZyAJ9Y77WrvegqCTNh/rivHISFhcLqjACbBpGO vPhpU9nzvWvPZJXaYeAlaP8= =ZluP -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--