Re: [PATCH] Whitelist libuuid clock file

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

 



On Wed, Jan 26, 2022 at 04:07:40PM +0100, Stanislav Brabec wrote:

> Another ideas:
> If uid is equal to "uuidd", use /var/lib/libuuid/clock.txt (or change to
> /var/lib/uuidd/clock.txt), else use home directory, e. g.
> ~/.libuuid_clock.txt.

This is nice idea. 

The file ~/.libuuid_clock.txt should be the default ;-), and we can  
extend __uuid_generate_time() to accept the clock file path as        
argument.  This function is called by uuidd, so the path will be fully
controlled by the daemon, then we can add --clock-state <path> to
overwrite /var/lib/uuidd/clock.txt.

This concept means that we do not have to care about uid at all and
the library (without uuidd) will not try to use any shared directory.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux