On Fri, Aug 21, 2009 at 03:13:12PM -0500, tra...@subspacefield.org wrote:
> Since the authors of the paper (Wagner et. al.) are proposing a new
> set of APIs to make all of this clearer, I'm thinking that I will
> create a module specifically for dropping permissions.
I've created the module here:
On Tue, Aug 25, 2009 at 03:03:12PM +0200, Hrvoje Niksic wrote:
> You should use ctypes.get_errno() instead of os.errno; sorry about that.
>
> Also, when raising OSError, you should set the 'errno' attribute to the
> appropriate code.
How does that compare to:
raise pythonapi.PyErr_SetFromErrno(p
travis+ml-pyt...@subspacefield.org writes:
> On Mon, Jul 20, 2009 at 04:10:35PM +0200, Hrvoje Niksic wrote:
>> To emulate the os-module-type calls, it's better to raise exceptions
>> than return negative values:
>>
>> > def setresuid(ruid, euid, suid):
>> > return _setresuid(__uid_t(ruid), __
On Aug 21, 1:50 pm, travis+ml-pyt...@subspacefield.org wrote:
> On Mon, Jul 20, 2009 at 04:10:35PM +0200, Hrvoje Niksic wrote:
> > To emulate the os-module-type calls, it's better to raise exceptions
> > than return negative values:
>
> > > def setresuid(ruid, euid, suid):
> > > return _setresu
On Mon, Jul 20, 2009 at 04:10:35PM +0200, Hrvoje Niksic wrote:
> To emulate the os-module-type calls, it's better to raise exceptions
> than return negative values:
>
> > def setresuid(ruid, euid, suid):
> > return _setresuid(__uid_t(ruid), __uid_t(euid), __uid_t(suid))
>
> def setresuid(ruid
On Fri, Jul 17, 2009 at 04:59:53PM -0400, Jean-Paul Calderone wrote:
> On Fri, 17 Jul 2009 15:01:41 -0500, travis+ml-pyt...@subspacefield.org wrote:
>> I am suggesting that the setresuid function be added to python,
>> perhaps in the OS module, because it has the clearest semantics for
>> manipulat
"Diez B. Roggisch" writes:
To emulate the os-module-type calls, it's better to raise exceptions
than return negative values:
> def setresuid(ruid, euid, suid):
> return _setresuid(__uid_t(ruid), __uid_t(euid), __uid_t(suid))
def setresuid(ruid, euid, suid):
res = _setresuid(__uid_t(ruid
Neal Becker wrote:
again with his notorious gmane.comp.python.general group that doesn't work
for any decent news-reader.
> Mahmoud Abdelkader wrote:
>
>> Why don't you write a python extension module? This is a perfect
>> opportunity for that.
>>
> I think having a module just for one sy
Mahmoud Abdelkader wrote:
> Why don't you write a python extension module? This is a perfect
> opportunity for that.
>
I think having a module just for one system call is a bit silly. Why not
add to os module?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 17 Jul 2009 15:01:41 -0500, travis+ml-pyt...@subspacefield.org wrote:
Hello,
[snip]
I am suggesting that the setresuid function be added to python,
perhaps in the OS module, because it has the clearest semantics for
manipulating user ids. The reason why is best described in the
followi
On 2009-07-17 15:01, travis+ml-pyt...@subspacefield.org wrote:
Hello,
Historically, I have used scripting languages like python for typical
uses, but they tend to not fare very well at system programming; for
close interfacing with the operating system, I'm often forced to use a
language like C.
Why don't you write a python extension module? This is a perfect opportunity
for that.
--
mahmoud mack abdelkader
http://blog.mahmoudimus.com/
On Fri, Jul 17, 2009 at 4:01 PM,
> wrote:
> Hello,
>
> Historically, I have used scripting languages like python for typical
> uses, but they tend to
Hello,
Historically, I have used scripting languages like python for typical
uses, but they tend to not fare very well at system programming; for
close interfacing with the operating system, I'm often forced to use a
language like C. This is undesirable to me.
I do not think this has to be the c
13 matches
Mail list logo