All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hasso Tepper <hasso@estpak.ee>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Sysctl syscall
Date: Fri, 17 Nov 2006 10:07:57 +0200	[thread overview]
Message-ID: <200611171007.57596.hasso@estpak.ee> (raw)
In-Reply-To: <p734psyczmb.fsf@bingen.suse.de>

Andi Kleen wrote:
> Hasso Tepper <hasso@estpak.ee> writes:
> > 2.4 and 2.6 kernels and would work with capabilities
> > (sys/capability.h)? Accessing `/proc/sys' directly isn't such
> > alternative as it doesn't work with capabilities.
>
> What do you mean with "/proc/sys doesn't work with capabilities"?

I have process which drops root privileges after startup and retains only 
some privileges using CAP_NET_ADMIN and CAP_SYS_ADMIN capabilities.
I can change values in /proc/sys/net/ipv[46]/* (like turning forwarding 
on/off) from this process using sysctl syscall, but I can't write 
directly into /proc/sys/net/ipv[46]/* from it.


regards,
 
-- 
Hasso Tepper
Elion Enterprises Ltd. [AS3249]
Data Communication Network Administrator

  reply	other threads:[~2006-11-17  8:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15 22:03 Sysctl syscall Hasso Tepper
2006-11-15 22:19 ` Jan Engelhardt
2006-11-17  7:15 ` Andi Kleen
2006-11-17  8:07   ` Hasso Tepper [this message]
2006-11-17  9:23     ` Andi Kleen
2006-11-17  9:38       ` Hasso Tepper
  -- strict thread matches above, loose matches on Subject: below --
2006-11-15 21:58 Hasso Tepper
2006-11-15 19:05 Hasso Tepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611171007.57596.hasso@estpak.ee \
    --to=hasso@estpak.ee \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.