lkml.org 
[lkml]   [1998]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Secure-linux and standard kernel

On Thu, 25 Jun 1998, MOLNAR Ingo wrote:

> if 'ping' is setuid root and the first thing say ping.c does is:
>
> drop_cap(ALL_BUT_RAWSOCKET);

Yes this is good isn't it. Note that traceroute's a better example; ping
for linux already does:

main()
fd = socket(SOCK_RAW ...)
setuid(getuid());



rlogin, rsh, dump, restore, even lpr, lprm, lpq, etc. all benefit a
similar way with

drop_cap(ALL_BUT_BIND_TO_LOW_PORT);


Chris


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.069 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site