2008/6/22 Michal Pryc <[EMAIL PROTECTED]>:
> Shawn Walker wrote:
>> So, I would urge you to remove this check.
>
> Shawn,
> So basically I agree with that what you and Darren are telling. On the other
> hand we were discussing the behavior with the xDesign team and we agreed to
> disable buttons if the user is unable to make some operation before the
> operation is executed.
> To follow those functional specification I don't know other way of
> implementing this then we've done in the GUI. Maybe someone could propose
> some other way?
>
> In our desktop other applications are doing exactly the same way as an
> example solaris-printmgr-wrapper
>
> What is happening we are running packagemanager with gksu:
>
> gksu /usr/bin/packagemanager
>
> in this case uid of the user is 0 even if this is normal user with special
> privileges. The gksu and not packagemanager is taking care about user
> privileges and access. Then in the packagemanager we are checking only UID
> so we are not checking named profiles, those are done by the underlying
> gksu.
>
> In the first phase we wanted to do something which will solve many problems
> for as and this simply works, but at some point we will be changing those
> bits for example to support user based images. As for now I would simply
> stick with what is there and move forward, since there are other more
> important issues such as performance and BE support to work on :)

I would really just remove the uid check. It's less code and easy to
do. If a permissions error happens, it should be handled no matter
what.

However, I leave it to the discretion of others as to what is done here.

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to