Updated UserPrivilege errors with InvalidArgument

Adding InvalidArgument error to the UserPrivilege property, which will
be returned, when specified user privilege is not in the list as per
the xyz.openbmc_project.User.Manager - AllPrivileges property

Tested:
1. Update the UserPrivilege to unknown privilege.
Command: busctl set-property xyz.openbmc_project.User.Manager
         /xyz/openbmc_project/user/user3 xyz.openbmc_project.User.
         Attributes UserPrivilege s "test"

Response: Failed to set property UserPrivilege on interface xyz.openbmc_
         project.User.Attributes: Invalid argument was given.

2. Update the UserPrivilege to "priv-user"
Command: busctl set-property xyz.openbmc_project.User.Manager
         /xyz/openbmc_project/user/user3 xyz.openbmc_project.User.
         Attributes UserPrivilege s "priv-user"

Response:

Signed-off-by: Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com>
Change-Id: I82ecc7873ec23e99291f80c4f00481d556c25931
1 file changed
tree: 92af8b34bbb33ffc62fb8a900eeaf639b2c1f729
  1. com/
  2. org/
  3. xyz/
  4. .gitignore
  5. bootstrap.sh
  6. configure.ac
  7. generate_makefile.sh
  8. generate_yaml_makefile.sh
  9. LICENSE
  10. MAINTAINERS
  11. Makefile.am
  12. Makefile.interfaces.in
  13. Makefile.yaml.in
  14. phosphor-dbus-interfaces.pc.in
  15. README.md
README.md

phosphor-dbus-interfaces

YAML descriptors of standard D-Bus interfaces. The format is described by the sdbusplus binding generation tool sdbus++.

Only the xyz/openbmc_project interfaces are built by default.

Enable the OpenPower D-Bus interfaces with:

--enable-openpower-dbus-interfaces

Enable IBM D-Bus interfaces with:

--enable-ibm-dbus-interfaces