summaryrefslogtreecommitdiffstats
path: root/xyz
Commit message (Collapse)AuthorAgeFilesLines
* Add intrusion sensor interfaceQiang XU2019-03-081-0/+10
| | | | | | | This interface is used to query intrusion detector status Change-Id: If0ebf421fc823f0f0db40eb0bc2f360dde834ea4 Signed-off-by: Qiang XU <qiang.xu@linux.intel.com>
* Re-enable "Add few additional properties in the LDAP config"Ratan Gupta2019-03-082-1/+20
| | | | | | | | | | | This commit enables the changes for the commit e5c0eef46a4fc09256332bf3afe699d60aaebbb3. The backend changes are done through the following commit https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-user-manager/+/18552/ Change-Id: I3a8069b8bfb7947371084892875a282413b4c749 Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
* Adding dbus method for GetUserInfo under User Managerraviteja-b2019-03-081-0/+41
| | | | | | | | | | | | | | | | | | | | | | | As local and remote users are managed by separate daemon,it is difficult for application to query and get the user authorization. In order to simplify it in application level, a one stop D-Bus API method was proposed which will be used by all applications (irrespective of local / remote user) except IPMI. This simplifies the application side. Same is documented in https://github.com/openbmc/docs/blob/master/user_management.md#authorization-flow-except-ipmi this method returns a dictionary of user properties. UserPrivilege -> privilege of the user UserGroups -> list of groups this user belongs to UserEnabled -> user enabled state UserLockedForFailedAttempt -> user locked state RemoteUser -> remote or local user this commit has GetUserInfo dbus api implementation https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-user-manager/+/18132/ Change-Id: Idbf933447dcf98623cf1f29606d24ea69ec44971 Signed-off-by: raviteja-b <raviteja28031990@gmail.com>
* Revert "Add few additional properties in the LDAP config"Brad Bishop2019-02-202-20/+1
| | | | | | | | This reverts commit e5c0eef46a4fc09256332bf3afe699d60aaebbb3. The backend is not ready for this. Change-Id: I1ed768f904e9297407996a8e92d8105b636dd172 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add few additional properties in the LDAP configRatan Gupta2019-02-182-1/+20
| | | | | | | | | | | | | | | | | | | | | | User can provide these properties to configure the LDAP. UsernameAttribute: In certain ldap server userid is "cn" and in other ldap server it becomes "uid" GroupNameAttribute: In certain ldap server groupid is gid and in other ldap server is PrimaryGroupID etc. Both properties exist in the LDAP server and admin of LDAP server can opt for any property to specify the userID and same is true for other properties(GroupName). It is aligned with redfish also. https://redfish.dmtf.org/schemas/AccountService.v1_3_1.json Change-Id: I3689d03bd80f62cc26fe840a9176875499c87554 Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
* Add Certs Manager interface.Jayanth Othayoth2019-02-152-4/+113
| | | | | | | | | | | | | | xyz.openbmc_project.Certs.Certificate provides the properties for the specific certificates. Currently KeyUsage property limited to support ClientAuthentication, KeyCertSign, ServerAuthentication purpose. Properties are based on the Redfish (DSP2046: 2018.3) certificate schema. Change-Id: I2bf74cb43ebb27d1aa6cf570c7f06b148b86ea49 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* network/system: Add IPv6 Gateway PropertyWilliam A. Kennington III2019-02-151-1/+7
| | | | | | | | Right now we can only set an IPv4 gateway. To support dual stack systems we need a way to have an IPv6 gateway. Change-Id: Id27f29093a1f605fd460ac22f73abdaeb1f85ff6 Signed-off-by: William A. Kennington III <wak@google.com>
* xyz.openbmc_project.Control.ThermalMode interfaceMatthew Barth2019-02-071-0/+26
| | | | | | | | | | | | | | | | | | With the addition of the Control.ThermalMode interface, a supported list of thermal modes and the current mode being used by the thermal control application is available. A current mode of "Default" is always provided by the chosen thermal control application. Then the thermal control application is configured to populate the list of supported modes for the given platform. This allows flexibility in the thermal control application to provide only the modes that it supports for any given platform and the names chosen for those modes. Requires commits: openbmc/sdbusplus f0dd3b5a3c6c54b4f38844b573e3f157f8064088 (https://gerrit.openbmc-project.xyz/18073) Change-Id: Ieff3ff6e328bfa2e850f52abaad6409b362ae7e7 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* network: Add a neighbor interfaceWilliam A. Kennington III2019-01-231-0/+30
| | | | | | | | To enable support for managing static neighbor entries in the BMC neighbor table. Change-Id: I2f3b6abe973753434433efb849d38d8d5315ed76 Signed-off-by: William A. Kennington III <wak@google.com>
* Add power control interfaceKuiying Wang2019-01-231-0/+31
| | | | | | | | | | | | | | | | methods: forcePowerOff properties: PGood State Note: All the interfaces are the low level interfaces to handle hardware. And provides supporting the high level interfaces like state-manager. They are the common interfaces and all the platforms implement them all. Change-Id: I6d90439879f5a4940cad03fd588dd233f81f2802 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
* Define enabled property for reset/power buttonKuiying Wang2019-01-232-0/+24
| | | | | | | | It is used to disable/enable reset/power button. Set front panel button enables command depends on this. Change-Id: I4cb3dabce889376d87dde570c56a456835a9a66e Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
* Add chassis type to Inventory.Item.Chassis.Oskar Senft2019-01-171-0/+6
| | | | | | | | | The use case is for the ipmi-fru-parser to store the chassis type from IPMI FRU data in the inventory. The phosphor-host-ipmid can use the field when generating IPMI FRU data for the host. Change-Id: Ic9d636ae8f3a87ee3448345b8260ad32f10d381e Signed-off-by: Oskar Senft <osk@google.com>
* watchdog: Rename timer use fields and enumWilliam A. Kennington III2019-01-171-7/+7
| | | | | | | | | | | The name of the num should not contain the word Field as the type is not a field, just the use case for the timer. The properties on the watchdog object should be clear as to being the current or last expired timer use. Change-Id: Iee21fbfa97e5ef0634b3f806a43d7d3e66288661 Signed-off-by: William A. Kennington III <wak@google.com>
* Add TPM interface with no attributes to InventoryMarri Devender Rao2019-01-171-0/+4
| | | | | | | | | Tpm interface with no attributes is used to determine the Trusted Platform Module(TPM) FRU type during discovery of inventory objects and during property updates. Change-Id: I766dea125ee3d9c5638fdce9f69351505a334f4b Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Add the time use related fields defined in IPMI specYong Li2019-01-151-0/+33
| | | | | | | | | | | | The IPMI watchdog timer use field is used to indicate the current timer use assigned to the watchdog timer, timer expiration flags is used to indicate the current timer expiration flags used by the timer. Add them as a dbus property, IPMI set/get watchdog commands will use it. Change-Id: I549a97a13a398fd0815a3865004c6880010aa08e Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* Fix invalid enum value in User/Ldap/Config.interface.yamlLei YU2019-01-091-1/+1
| | | | | | | | | | | | | | | | The interfaces sets the default value for a enum property to 0, which causes the generated server.hpp file contains code like: SearchScope _lDAPSearchScope = SearchScope::0; Fix it by specify the enum value instead of 0. Tested: Verify the generated code becomes below and pass the build. SearchScope _lDAPSearchScope = SearchScope::sub; Change-Id: I509b6968d32dec38d1592103df9821b2fc99b5d6 Signed-off-by: Lei YU <mine260309@gmail.com>
* D-Bus interface to configure service properties.AppaRao Puli2018-12-062-0/+72
| | | | | | | | | | | | D-Bus interface exposing properties for service (RMCP+, web, SSH) like state, port to configure the same. Common interface to support both systemctl or iptables implementation. Service manager daemon (new daemon) will expose objects with these interfaces. Change-Id: I96941cf3c762fe069f13c1895fd840d7ab87e95c Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Add ChassisCapabilities interfaceYong Li2018-11-291-0/+28
| | | | | | | | | | | This interface is used for get/set chassis capabilities IPMI commands. The current implementation for the commands uses hard-coded values, add this interface to store the capabilities, and save them into settings-manager. Change-Id: I74ba96f4152623781d891efce27fa3594ace7be3 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* Add errors to User/Attributes interfaceRatan Gupta2018-11-261-0/+8
| | | | | | | | Setting properties in this interface could fail to due to internal failures. Change-Id: I8bc84dcf105ece0f5322315d02dea7fa919444fc Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
* Add errors to User/AccountPolicy interfaceRatan Gupta2018-11-261-0/+8
| | | | | | | | Setting properties in this interface could fail to due to internal failures. Change-Id: Ibec355b3d6adf5d46651e9d90aa542b9cde47a88 Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
* Ldap: Remove the secure property from the ldap config and create interfaceRatan Gupta2018-11-072-12/+1
| | | | | | | | | | Secure property is not required as URI itself tells that whether the configured LDAP is secure or not. For secure server, URI would be ldaps://<hostname/ip> and for nonsecure ldap server URI would be ldap://<hostname/ip> Change-Id: Ieb1b1466f0da8f6bb5695595fab8ec1e5b0e9075 Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
* Don't store LDAP Bind passwordDeepak Kodihalli2018-11-071-8/+0
| | | | | | | | | | | | Remove LDAP Bind password from the Ldap.Config interface. It is unnecessary and undesirable to store this password in a D-Bus object. The Ldap.Create interface still accepts the Bind password, as before. If an admin has to change the Ldap bind password, they'd need to recreate the LDAP config. Change-Id: Ie5a8002bed3fd8c57500af588d9b010190f5ff9b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Declare errors in Config and Create interfacesNagaraju Goruganti2018-11-074-0/+6
| | | | | | | | | | | | The Config interface and Create interface can throw a "NoCACertificate" error. For example: If LDAP server's CA certificate not provided and someone tries to enable secure LDAP, this error should be thrown. Change-Id: Ie773245fb7c6b36f25cd1acca2bfc3b0391dfeac Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com> Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add fan redundancy interfaceJames Feist2018-11-031-0/+37
| | | | | | | | | | | | | | Add object to describe whether a group of fans is in a redundant state. BMCs typically monitor fan states and allow a certain number of fans to be in an error condition before taking action. This object can be monitored to determine when to take actions such as boosting fans. Tested-by: Ran CI Change-Id: Id91bfdfcb7e49b933a0d6f16c63fd806e009d62f Signed-off-by: James Feist <james.feist@linux.intel.com>
* Add Custom Field for inventoryVijay Khemka2018-10-301-0/+9
| | | | | | | | | | Added Custom Field from Fru spec in inventory for Vendor information. Tested: Build Facebook TiogaPass board and load on the target hardware. Ensure that Fru information are updated in inventory. Change-Id: I88ce315579a7e2c5c83c991b0d3e22193335dd24 Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
* Network: README: Add example commandsRatan Gupta2018-10-261-15/+201
| | | | | | | | Added example commands including VLAN and config properties. Change-Id: I7055b7bf0dc68fe880e1a27599ce192e7a7b64b8 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add the Logging.IPMI interfaceJason M. Bills2018-10-191-0/+77
| | | | | | | | | | | | Adding an interface for the IPMI SEL Logger which provides methods for IPMI Sensor D-Bus objects to add System and OEM SEL events to the journal. Related discussion at https://lists.ozlabs.org/pipermail/openbmc/2018-September/013129.html Change-Id: Idd15d92b95fcd4350d4d8ca15b34d864b0c2c507 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* Add new Software Version Incompatible errorAdriana Kobylak2018-10-182-0/+16
| | | | | | | | | | | | | | Add a new error for when a system component does not meet the version requirements as determined by the implementation. Collect the following metadata: - MIN_VERSION: The minimum version level as defined by the implementation. - ACTUAL_VERSION: The version running on the system component. - VERSION_PURPOSE: The Version Purpose as described in https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Software/Version.interface.yaml or some other descriptive text. Change-Id: I3e39bfa0735173aee7f3c2177ae24afa619efd69 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Declare errors in config interfaceNagaraju Goruganti2018-10-051-0/+18
| | | | | | | | The config interface can throw an InternalFailure or InvalidArgument errors. Change-Id: Ida1a690e3b3137e621b27b788cfde28b7f31da5f Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Adding dbus interfaces for channel access infoAppaRao Puli2018-10-041-0/+13
| | | | | | | | | | Added new interface(ChannelAccess) for holding channel access information(privilege). This is used to set & get channel level authorization. Change-Id: Ib927d5658c0601df0da0969572fa28733a825b93 Signed-off-by: AppaRao Puli <apparao.puli@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Add ACPI system/device power states propertiesYong Li2018-10-041-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ACPI system/device power states interface to support IPMI get/set ACPI state commands. It is different from existed dbus interface 'PowerState'. Based on the IPMI spec, this is an independent setting that may not necessarily match the actual power state of the system. system power state enumeration: S0/G0 0x00 S1 0x01 S2 0x02 S3 0x03 S4 0x04 S5/G2 0x05 S4/S5 0x06 G3 0x07 Sleeping 0x08 G1 sleeping 0x09 Override 0x0A Legacy on 0x20 Unknown 0x2A Device power state enumeration: D0 0x00 D1 0x01 D2 0x02 D3 0x03 Unknown 0x2A Change-Id: I39b393b67dc79ebb90054fcbe408e61e6b76fe36 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* Declare errors in Object.Delete interfaceDeepak Kodihalli2018-10-041-0/+2
| | | | | | | The Delete interface can throw an InternalFailure error. Change-Id: I36c42b97d862cf534d34c6f24a14388f7304940f Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Modify the PrivilegeMapperEntry interfaceTom Joseph2018-10-042-5/+19
| | | | | | | | | | | | The object path for the privilege mapper cannot have LDAP group name in the path name. The D-Bus object path should only contain the ASCII characters [A-Z][a-z][0-9]_. According to RFC 2253, the LDAP group name can have additional special characters. A unique identifier is added to the D-Bus object path and the group name is a property of the privilege mapper. Change-Id: If1c511bee7a492887eb45e7ce00fdfc55e98c073 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add interface to assign privilege to groupsTom Joseph2018-09-183-0/+61
| | | | | | | | | | This interface will be implemented to assign privilege roles to groups. The privilege roles will be assigned to groups and the user accounts which are part of the group will inherit the privilege role. Change-Id: I2326de5f7f3e6e92c2a0d7648a5677b33a0b1db0 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add interface to install certificateJayanth Othayoth2018-09-174-0/+102
| | | | | | | | | | An Interface to install the certificate provided by the user and activate the services associated to the certificate. README file provides the design details of uploading signed certificate and private key and activating the new certificate. Change-Id: Ib4e1ae2f957cce71698c2265bb733a04478b0abf Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add an Interface to configure LDAP name service daemonNagaraju Goruganti2018-09-132-0/+129
| | | | | | | | | | | It defines interfaces to create and to update LDAP config file. It defines two interfaces - one is to create a config file and the another one is to allow updates to happen to individual properties. Change-Id: I2f8182ad6d6d6945650d6ff0865c40106973fdec Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Add PowerSupplyAttributes interfaceAdriana Kobylak2018-09-061-0/+10
| | | | | | | | | | | Create a PowerSupply interface to host characteristics for an individual power supply and add the Derating Factor as a property. The derating factor is intended as a read-only value. Tested: Compiled the changes and verified the generated code. Change-Id: I5f8cdc19239a9a17b0a4ad8383c679b530f1a6b5 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* EpocTime: Use proper errors on setting time failureLei YU2018-08-315-2/+27
| | | | | | | | | | | | | | | | | | | Depends on the time config setting, setting property of EpochTime interface may fail, e.g. not allowed, or systemd prevents the time setting. It was using InsufficientPermission to indicate not allowed error, but it is not ideal. Use proper errors, e.g. NotAllowed for this interface, so it reports error correctly. Note that phosphor-logging now supports inherits of errors without meta. So NotAllowed is defined in Common without meta, and inherited in Time with extra meta. Change-Id: I3e660905d6bcb94680303a030eb7b1402e2f0075 Signed-off-by: Lei YU <mine260309@gmail.com>
* Control: Make PowerSupplyRedundancy const (read-only)Adriana Kobylak2018-08-311-0/+2
| | | | | | | | | | | | This property is a policy that dictates how the system would behave if a power supply goes missing, and it's not intended to be modified by the user. Set it to read-only. Tested: Attempting to change the value via REST fails with "org.freedesktop.DBus.Error.PropertyReadOnly". Change-Id: I423a49bbf30eb150e38c8da52b913c3097384897 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Add errors to Network/Client interfaceDeepak Kodihalli2018-08-311-0/+5
| | | | | | | | Setting properties in this interface could fail to due to invalid arguments, or internal errors. Change-Id: Id734f47e68495b42440dfdb0246b83e95045a037 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Upgrade D-Bus API about Buttons from “/org/openbmc” toKuiying Wang2018-08-085-0/+109
| | | | | | | | | | | | | | | | | | “/xyz/openbmc_project” According to the DEPRECATED API doc, the “/org/openbmc” API is deprecated in the future. Please refer: https://github.com/openbmc/docs/blob/master/deprecated/dbus-interfaces.md xyz.openbmc_project.Chassis.Buttons exposes the operation methods of the buttons on the front panal like Power/Reset/ID, and the signals like pressed/released to dbus, so that other modules could monitor/control these buttons remotely like WebUI. Change-Id: Iaf8990d19633d2df2beeb4b2c22f30f1abad6a45 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
* Interface support for security configurationRichard Marian Thomaiyar2018-08-064-3/+57
| | | | | | | | | | Configuration support for password and security enforcement for user account under AccountPolicy interface (which will manage global policies related to accounts). Change-Id: Icdea6d83654f9449088a6319f453788cb25ecfc2 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Remove InternalFailure error from LastRebootTimeMatt Spinler2018-08-061-2/+0
| | | | | | | That error will never be returned. Change-Id: I7cebfbb3c703216592f16dbdfeba0a982c9f8a6a Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Create Network.Client interfaceRatan Gupta2018-07-271-0/+14
| | | | | | | | | | | | | | Provide an interface for configuring the network client/endpoint. D-Bus object which wants to keep the network endpoint info can extend this interface. e.g: Network endpoint could be SNMP mangers or LDAP servers etc. Resolves openbmc/openbmc#3004 Change-Id: Ieedfc6e1d02fc7321b050cc3f27e206d60ac6fb9 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Add LastStateChangeTime property to State.ChassisMatt Spinler2018-07-251-0/+8
| | | | | | | | | | | This holds the timestamp of when the chassis power state last changed. This will be used by the web UI to show the user when their system was last powered on or off. Change-Id: I801cd40e2e7d8ee18ede132be59f0776f5fc9d1f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add LastRebootTime property to BMC stateMatt Spinler2018-07-121-0/+8
| | | | | | | | It contains the epoch time of the last BMC reboot as determined by its uptime. Change-Id: I2e80734db8443c9e3d49b3cf6dd336ee5d9937be Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add InvalidArgument error for Default GatewayGunnar Mills2018-06-261-0/+2
| | | | | | | sdbusplus now supports errors on properties. Change-Id: Ida480c5b161dcf2ab399c04904f34bee9f303a6c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add InternalFailure error for MAC AddressGunnar Mills2018-06-261-0/+1
| | | | | | | | | | Using the InternalFailure error here: https://github.com/openbmc/phosphor-networkd/blob/057ff0daf0fd4d2617c5e50e2f9a095e06e3c24b/ethernet_interface.cpp#L710 sdbusplus now supports errors on properties. Change-Id: I8dc9d8df5203ceca1ef33edf9a9a96eb1fa0691e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add InvalidArgument error for MAC AddressGunnar Mills2018-06-261-1/+2
| | | | | | | sdbusplus now supports errors on properties. Change-Id: Ia70bb6b9c52dc60ecf549e5b5209848a3cb0bfda Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Basic user manager D-Bus supportRichard Marian Thomaiyar2018-06-185-0/+179
| | | | | | | | | | | Basic User Manager D-Bus interfaces along with signal to indicate other services. Note: Removal of password.interfaces.yaml will be done in separate commit Change-Id: Ia547a0deae53eb25adf2cbc04c9d7a3593265a19 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
OpenPOWER on IntegriCloud