diff options
author | brian <brian@FreeBSD.org> | 2009-06-25 16:15:39 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2009-06-25 16:15:39 +0000 |
commit | 804f2f79eee18b6494ba08a9909d3cc4cface7cd (patch) | |
tree | 9a6b7f4860169027c143248b8fa6f7a6afd15fc6 /usr.bin | |
parent | e96ab5a0ecb1b0ab6ce67c702d929064312609b1 (diff) | |
download | FreeBSD-src-804f2f79eee18b6494ba08a9909d3cc4cface7cd.zip FreeBSD-src-804f2f79eee18b6494ba08a9909d3cc4cface7cd.tar.gz |
Support shadow.byname and shadow.byuid maps, protecting them by
insisting on privileged port access.
Include /var/yp/Makefile.local if it exists and suggest using
it to override /var/yp/Makefile behaviour.
Approved by: re (kib)
MFC after: 3 weeks
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ypcat/ypcat.c | 1 | ||||
-rw-r--r-- | usr.bin/ypmatch/ypmatch.c | 1 | ||||
-rw-r--r-- | usr.bin/ypwhich/ypwhich.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index 5539043..3484bc9 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -52,6 +52,7 @@ struct ypalias { } ypaliases[] = { { "passwd", "passwd.byname" }, { "master.passwd", "master.passwd.byname" }, + { "shadow", "shadow.byname" }, { "group", "group.byname" }, { "networks", "networks.byaddr" }, { "hosts", "hosts.byaddr" }, diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c index d0904c5..a9c32ea 100644 --- a/usr.bin/ypmatch/ypmatch.c +++ b/usr.bin/ypmatch/ypmatch.c @@ -52,6 +52,7 @@ struct ypalias { } ypaliases[] = { { "passwd", "passwd.byname" }, { "master.passwd", "master.passwd.byname" }, + { "shadow", "shadow.byname" }, { "group", "group.byname" }, { "networks", "networks.byaddr" }, { "hosts", "hosts.byname" }, diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c index 8bfca24..4e719df 100644 --- a/usr.bin/ypwhich/ypwhich.c +++ b/usr.bin/ypwhich/ypwhich.c @@ -64,6 +64,7 @@ struct ypalias { } ypaliases[] = { { "passwd", "passwd.byname" }, { "master.passwd", "master.passwd.byname" }, + { "shadow", "shadow.byname" }, { "group", "group.byname" }, { "networks", "networks.byaddr" }, { "hosts", "hosts.byaddr" }, |