: getdomainname(2) needs no root privileges. And I still dont think a NIS
: Domainname is a good Password. Please simply use secure NIS implementations.
Even with a secure NIS implementation a user on a host in the domain
can simply do a
ypcat passwd
to get at the passwords. If the getdomainname() call would require root priviledges
then the ypcat would not be possible.
Is there any reason why a regular user process would need getdomainname()?