http://defect.opensolaris.org/bz/show_bug.cgi?id=10220


amaguire <alan.maguire at sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alan.maguire at sun.com
             Status|NEW                         |CLOSED
         Resolution|                            |INVALID




--- Comment #1 from amaguire <alan.maguire at sun.com>  2009-07-23 00:27:45 ---
(In reply to comment #0)
> There are several cases in NWAM suite to test authorization, they all passed
> before, but
> now some of them failed like this:
> 
> The assertions is:
> For an user without the authorization 'solaris.network.autoconf.write',
> it can't create configuration using 'nwamcfg', otherwise it succeeds.
> 
> 520|0 4 4473 1 2|earthscience 19:01:05 case_startup done
> 520|0 4 4473 1 3|earthscience 19:01:05 sudo: /usr/sbin/nwamcfg 'create
> enm myenm1; set activation-mode=manual; set start=/var/tmp/mytest; set
> stop=/var/tmp/mytest', with auth
> "nwamtest::::type=normal;defaultpriv=basic", expect: 1
> 520|0 4 4473 1 4|earthscience 19:01:06 sudo: /usr/sbin/nwamcfg 'create
> enm myenm1; set activation-mode=manual; set start=/var/tmp/mytest; set
> stop=/var/tmp/mytest', with auth
> "nwamtest::::type=normal;auths=solaris.network.autoconf.read", expect: 1
> 520|0 4 4473 1 5|earthscience 19:01:07 sudo: /usr/sbin/nwamcfg 'create
> enm myenm1; set activation-mode=manual; set start=/var/tmp/mytest; set
> stop=/var/tmp/mytest', with auth
> "nwamtest::::type=normal;auths=solaris.network.autoconf.write", expect: 0
> 520|0 4 4473 1 6|earthscience 19:01:08 FAILURE: Return value is 1, not 0
> as expected.
> 520|0 4 4473 1 7|earthscience 19:01:08 sudo: /usr/sbin/nwamcfg 'create
> enm myenm1; set activation-mode=manual; set start=/var/tmp/mytest; set
> stop=/var/tmp/mytest', with auth
> "nwamtest::::type=normal;auths=solaris.network.autoconf.read,solaris.network.autoconf.write",
> expect: 0
> 520|0 4 4473 1 8|earthscience 19:01:10 FAILURE: Return value is 1, not 0
> as expected.
> 520|0 4 4473 1 9|earthscience 19:01:10 sudo: /usr/sbin/nwamcfg 'create
> enm myenm1; set activation-mode=manual; set start=/var/tmp/mytest; set
> stop=/var/tmp/mytest', with auth
> "nwamtest::::type=normal;auths=solaris.network.autoconf.read,solaris.network.autoconf.write,solaris.network.autoconf.refresh",
> expect: 0
> 520|0 4 4473 1 10|earthscience 19:01:11 sudo: /usr/sbin/nwamcfg 'create
> enm myenm1; set activation-mode=manual; set start=/var/tmp/mytest; set
> stop=/var/tmp/mytest', with auth
> "nwamtest::::type=normal;profiles=Network Autoconf", expect: 0
> 
> It seems like we can't execute 'create ...' action successfully when
> the user have auth with 'write' or 'write and read', but it succeeds when
> it has auth of 'read and write and refresh' .
> 
> So I guess there's something wrong with the bits after nwam1-build:2009-07-07.

this isn't a bug - as part of Bug 9759, we needed to fix the authorizations so
that to make changes, a user needs write and read and refresh, since making
such changes involves reading the config, writing it _and_ sending a refresh
event to nwamd. It'd be good if we could change the testcases to confirm that
read, write and refresh are needed to make changes, and any combination not
including all these fails.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

Reply via email to