Bug 3774 - ProcBlock's isOwned code doesn't work
Summary: ProcBlock's isOwned code doesn't work
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Nurdin Premji
URL:
Keywords:
Depends on:
Blocks: 2244
  Show dependency treegraph
 
Reported: 2006-12-20 18:54 UTC by Andrew Cagney
Modified: 2006-12-20 20:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-12-20 18:54:40 UTC
The ProcBloc observer is trying to use the condtion:

    boolean isOwned = proc.getUID() == Manager.host.getSelf().getUID()
                      || proc.getGID() == Manager.host.getSelf().getGID();

to determine if an attach will work.

This does not work.

The code needs to instead always attempt the observer add, if the attempt fails
the core will notify with a failure and that failure should be propogated back
to the client
Comment 1 Nurdin Premji 2006-12-20 20:55:38 UTC
Fixed:

December 20, 2006
frysk-core/frysk/proc/CL
	* ProcBlockAction.java (ProcBlockAction): Removed isOwned check as per 
	bug 3774.