Re: lvcreate from a setuid-root binary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 2018-11-17 01:24, Alasdair G Kergon wrote:
On Fri, Nov 16, 2018 at 02:43:10PM +0100, Christoph Pleger wrote:
I get security by checking the real user id at the beginning of the
program and aborting the program if that uid does not belong to the only
user who is allowed to run the program.

Sounds familiar.  Shall I tell you one of those stories?
...
...
...

My program calls getpwuid() with the real user id of the calling user and then compares this user's name with the name of the one and only user who is allowed to continue program execution. Do you think that this can be circumvented?

Regards
  Christoph

_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux