Program permission during dynamic linking - Security

This is a discussion on Program permission during dynamic linking - Security ; Hello, If a program P with security of user "goo" uses a library (.so file) during running, which has permission "root", what is the privilege of program P? Is it goo throughout, root throughout, or goo when its in its ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Program permission during dynamic linking

  1. Program permission during dynamic linking

    Hello,
    If a program P with security of user "goo" uses a library (.so file)
    during running, which has permission "root", what is the privilege of
    program P?
    Is it goo throughout, root throughout, or goo when its in its own code,
    and root when the lib gets invoked?


    Thanks.


  2. Re: Program permission during dynamic linking

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 26 Dec 2005 01:43:11 -0800,
    binary-nomad@hotmail.com wrote:
    > Hello,
    > If a program P with security of user "goo" uses a library (.so file)
    > during running, which has permission "root", what is the privilege of
    > program P?
    > Is it goo throughout, root throughout, or goo when its in its own code,
    > and root when the lib gets invoked?
    >
    >
    > Thanks.
    >



    Assuming no funny business with SUID or SetGUID, programme P runs with
    permissions of user goo, the permissions of the library, are not
    relevent. The library is just a file that gets loaded by ld.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (GNU/Linux)

    iD8DBQFDr8e4d90bcYOAWPYRAqJrAJ9eTpbQXqVMcAkNHYVmpK v4daq3GQCeN0q2
    Hz7PBjJOGsBr7QufKozTYiY=
    =Tc2X
    -----END PGP SIGNATURE-----

    --
    Jim Richardson http://www.eskimo.com/~warlock
    Don't get mad, get Linux

+ Reply to Thread