+1 on this idea and the followup comments. If legally permissible, I like the idea of the image policy, but I can't imagine a lawyer saying yes to that. I'm also curious under what conditions a lawyer would ever allow must_accept=false.

Just FYI, in updatetool for user images, we currently assume a default of requiring license acceptance, but we can change that when this feature comes in.

Tom

Stephen Hahn wrote:
  The license action needs to support an attribute that requires the
  user to make an explicit acknowledgment to proceed with an
  installation.  I'm proposing we add a new attribute, must_accept, to
  the license action, such that clients must fail if an acceptance
  indicator is not provided by the user.  This indicator should end up
  in the image's operational history.

  For the GUI, I would expect that the presence of the attribute would
  result in display of the license contents and a accept dialog.  I've
  noticed that NetBeans allows all licenses in a transaction to be
  accepted; one can also navigate license by license.

  For the CLI, I propose that the operation fail unless a
  --accept-license option is presented.  Failure should present the list
  of licenses requiring acceptance, and their associated package.  (The
  --license option to pkg info allows license text review.)

  The documentation changes are roughly:

  pkgsend.1:

----
!      license src_path license=<license_name> must_accept=<true|false> \
         [ property_list ]
            Deliver, into the image packaging metadata, the license file
!           at src_path, labelled by the given license value.  The
!           must_accept attribute influences installation client
!           behavior.
----

  pkg.5:

----
  License actions
    The 'license' action represents a license or other informational
    file associated with the package contents.  A package may deliver
    licenses, disclaimers, or other guidance to the package installer
    through the use of the license action.  The payload of the license
    action will be delivered into the image metadata directory
    associated with the package.

    The following attributes are recognized:

    license  The keyword identifying the license type, for use in filter
             and query operations.

+   must_accept  License requires manual acceptance.  If the value is
+            'true', installation clients must require some token that
+            indicates acceptance, or inquire about acceptance
+            interactively.  If the attribute is not present, or the
+            attribute value is 'false', acceptance is not necessary.

    The 'license' attribute is the key attribute for the license action.
----

   Comments welcome.

   - Stephen


begin:vcard
fn:Tom Mueller
n:Mueller;Tom
org:Sun Microsystems, Inc.;Update Center Software
adr:;;21915 Hillandale Dr;Elkhorn;NE;68022;USA
email;internet:[email protected]
title:Senior Staff Engineer
tel;work:877-250-4011
tel;fax:877-250-4011
tel;home:402-916-9943
x-mozilla-html:TRUE
version:2.1
end:vcard

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

Reply via email to