mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Pleger <christoph.pleger@cs.uni-dortmund.de>
To: linux-kernel@vger.kernel.org
Subject: Permission problems  - though all three UIDs are 0
Date: Wed, 21 Nov 2018 16:51:50 +0100	[thread overview]
Message-ID: <0236bec1badc3e2cbbcbda6306dfa3d6@cs.uni-dortmund.de> (raw)

Hello,

I want to ask for the possible reasons why a program, called from 
another program with setuid-root file permissions and an additional 
setreuid(0,0) to also set the real uid to 0, still gets an "Operation   
not permitted" error.

In my case, I execve lvcreate from the setuid-root binary. This works 
well when I use my program as a non-root user from the command line, but 
I want to call it is a non-root user from pam_exec PAM module and with 
that lvcreate fails.

Regards
   Christoph

PS: Please, no discussion about possible security holes in 
setuid-programs here

                 reply	other threads:[~2018-11-21 15:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=0236bec1badc3e2cbbcbda6306dfa3d6@cs.uni-dortmund.de \
    --to=christoph.pleger@cs.uni-dortmund.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®