[PATCH] s3-printing: follow force user/group for driver IO

David Disseldorp ddiss at suse.de
Thu Mar 3 02:40:15 MST 2011


Hi Metze,

On Thu, 03 Mar 2011 10:28:09 +0100
"Stefan (metze) Metzmacher" <metze at samba.org> wrote:

> Does this change the group token of the connection_struct of the ipc$
> tree connect that was done by the client or does this code create
> a faked connection_struct that represents the print$ share (and you
> just fix the token on this one)?

The latter. get_correct_cversion(), move_driver_to_download_area() and
delete_driver_files() create a fake connection_struct for manipulating
print$ driver files while authenticated against ipc$.

The newly added set_conn_force_user_group() call sets the user/group
tokens in the faked print$ connection_struct.

Cheers, David


More information about the samba-technical mailing list