pgsql: Fix handling of restricted processes for Windows Vista (mainly),

Started by Magnus Haganderover 18 years ago4 messagescomitters
Jump to latest
#1Magnus Hagander
magnus@hagander.net

Log Message:
-----------
Fix handling of restricted processes for Windows Vista (mainly),
by explicitly adding back the user to the DACL of the new process.
This fixes the failure case when executing as the Administrator
user, which had no permissions left at all after we dropped the
Administrators group.

Dave Page with some modifications from me

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.152 -> r1.152.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.152&r2=1.152.2.1)
pgsql/src/bin/pg_ctl:
pg_ctl.c (r1.92.2.1 -> r1.92.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_ctl/pg_ctl.c?r1=1.92.2.1&r2=1.92.2.2)
pgsql/src/include:
port.h (r1.116 -> r1.116.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/port.h?r1=1.116&r2=1.116.2.1)
pgsql/src/port:
exec.c (r1.57 -> r1.57.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/exec.c?r1=1.57&r2=1.57.2.1)

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Magnus Hagander (#1)
Re: pgsql: Fix handling of restricted processes for Windows Vista (mainly),

What about HEAD?

cheers

andrew

Magnus Hagander wrote:

Show quoted text

Log Message:
-----------
Fix handling of restricted processes for Windows Vista (mainly),
by explicitly adding back the user to the DACL of the new process.
This fixes the failure case when executing as the Administrator
user, which had no permissions left at all after we dropped the
Administrators group.

Dave Page with some modifications from me

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.152 -> r1.152.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.152&r2=1.152.2.1)
pgsql/src/bin/pg_ctl:
pg_ctl.c (r1.92.2.1 -> r1.92.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_ctl/pg_ctl.c?r1=1.92.2.1&r2=1.92.2.2)
pgsql/src/include:
port.h (r1.116 -> r1.116.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/port.h?r1=1.116&r2=1.116.2.1)
pgsql/src/port:
exec.c (r1.57 -> r1.57.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/exec.c?r1=1.57&r2=1.57.2.1)

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

#3Magnus Hagander
magnus@hagander.net
In reply to: Andrew Dunstan (#2)
Re: pgsql: Fix handling of restricted processes for Windows Vista (mainly),

Uh, it was applied to HEAD. If you didn't get the email, check your
spamfilters - it's in the archives so it was sent:
http://archives.postgresql.org/pgsql-committers/2008-02/msg00363.php

//Magnus

Andrew Dunstan wrote:

Show quoted text

What about HEAD?

cheers

andrew

Magnus Hagander wrote:

Log Message:
-----------
Fix handling of restricted processes for Windows Vista (mainly),
by explicitly adding back the user to the DACL of the new process.
This fixes the failure case when executing as the Administrator
user, which had no permissions left at all after we dropped the
Administrators group.

Dave Page with some modifications from me

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.152 -> r1.152.2.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.152&r2=1.152.2.1)

pgsql/src/bin/pg_ctl:
pg_ctl.c (r1.92.2.1 -> r1.92.2.2)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_ctl/pg_ctl.c?r1=1.92.2.1&r2=1.92.2.2)

pgsql/src/include:
port.h (r1.116 -> r1.116.2.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/port.h?r1=1.116&r2=1.116.2.1)

pgsql/src/port:
exec.c (r1.57 -> r1.57.2.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/exec.c?r1=1.57&r2=1.57.2.1)

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

#4Andrew Dunstan
andrew@dunslane.net
In reply to: Magnus Hagander (#3)
Re: pgsql: Fix handling of restricted processes for Windows Vista (mainly),

Magnus Hagander wrote:

Uh, it was applied to HEAD. If you didn't get the email, check your
spamfilters - it's in the archives so it was sent:
http://archives.postgresql.org/pgsql-committers/2008-02/msg00363.php

/

OK, thanks.

I have had odd delays in getting email from the lists, that must be it.

cheers

andrew