It was <2014-05-22 czw 11:16>, when Michal Witanowski wrote: > From: Dev [mailto:[email protected]] On Behalf Of Thiago Macieira > Sent: Wednesday, May 21, 2014 7:54 PM >> Em qua 21 maio 2014, às 17:35:32, Michal Witanowski escreveu: >>> I'm in team working on Domain Separation (Linux Containers) and we need to >>> reserve an UID for our daemon which will be communicating with containers >>> via dbus socket (it requires that UID in host and container match, so we >>> can't trust default values). >>> >>> I was wondering if there exist any rules for User ID allocation on >>> Tizen 3.0 platform. >> >> Can't you simply have a useradd -r command in the RPM post-install >> rule? This will create a UID for you. The software simply needs to >> getpwnam to get the UID. [...] > > We can't just do "useradd -r", because it will generate a "random" User ID. > We must be sure that UID of the deamon user will be the same, regardless > system configuration, existing users in the system, etc.
Why is that? Are you going to hardcode the uids anywhere? That is BAD. -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics
pgp3B689tcmwD.pgp
Description: PGP signature
_______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
