/openbmc/phosphor-certificate-manager/dist/ |
H A D | meson.build | 2 busconfig_dir = get_option('datadir') / 'dbus-1' / 'system.d' 3 cert_manager_dir = get_option('datadir') / 'phosphor-certificate-manager' 7 service_files = ['phosphor-certificate-manager@.service'] 10 if get_option('ca-cert-extension').allowed() 11 busconfig += 'busconfig/bmc-vmi-ca.conf' 12 service_files += 'bmc-vmi-ca-manager.service' 15 if get_option('config-bmcweb').allowed() 16 busconfig += 'busconfig/phosphor-bmcweb-cert-config.conf' 20 '../phosphor-certificate-manager@.service', 21 'multi-user.target.wants/phosphor-certificate-manager@bmcweb.service', [all …]
|
/openbmc/phosphor-user-manager/test/ |
H A D | ldap_config_test.cpp | 1 #include "config.h" 3 #include "phosphor-ldap-config/ldap_config.hpp" 4 #include "phosphor-ldap-config/ldap_config_mgr.hpp" 28 using Config = phosphor::ldap::Config; typedef 79 MOCK_METHOD1(restartService, void(const std::string& service)); 80 MOCK_METHOD1(stopService, void(const std::string& service)); 81 std::unique_ptr<Config>& getOpenLdapConfigPtr() in getOpenLdapConfigPtr() 88 return getADConfigPtr()->ldapBindPassword; in configBindPassword() 91 std::unique_ptr<Config>& getADConfigPtr() in getADConfigPtr() 108 return ADConfigPtr->secureLDAP; in secureLDAP() [all …]
|
/openbmc/phosphor-user-manager/ |
H A D | meson.build | 2 'phosphor-user-manager', 15 add_project_arguments('-DENABLE_ROOT_USER_MGMT', language: 'cpp') 22 'xyz.openbmc_project.User.Manager', 58 '/xyz/openbmc_project/user/ldap/config', 59 description: 'D-Bus path of LDAP config object.', 64 'xyz.openbmc_project.Ldap.Config', 65 description: 'D-Bus busname of LDAP config service.', 70 '/var/lib/phosphor-ldap-conf', 74 conf_header = configure_file(output: 'config.h', configuration: conf_data) 76 phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces') [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | manager.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 17 #include "manager.hpp" 43 constexpr auto managerObjPath = "/xyz/openbmc_project/power/regulators/manager"; 54 * implement the D-Bus compatible interface. 56 constexpr auto defaultConfigFileName = "config.json"; 60 * firmware install image. It contains the standard version of the config file. 62 const fs::path standardConfigFileDir{"/usr/share/phosphor-regulators"}; 66 * of the config file. The test version will override the standard version. 68 const fs::path testConfigFileDir{"/etc/phosphor-regulators"}; 70 Manager::Manager(sdbusplus::bus_t& bus, const sdeventplus::Event& event) : in Manager() function in phosphor::power::regulators::Manager [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/srvcfg-manager/ |
H A D | srvcfg-manager_git.bb | 1 SUMMARY = "Service configuration manager daemon to control the service" 2 DESCRIPTION = "Applications must use service manager daemon to configure \ 3 phosphor-ipmi-net, bmcweb, obmc-console etc in the system, \ 6 HOMEPAGE = "https://github.com/openbmc/service-config-manager" 7 LICENSE = "Apache-2.0" 11 phosphor-logging \ 19 SRC_URI = "git://github.com/openbmc/service-config-manager;branch=master;protocol=https" 22 SYSTEMD_SERVICE:${PN} = "srvcfg-manager.service"
|
/openbmc/service-config-manager/ |
H A D | README.md | 1 # Service config manager 3 The service config manager provides a D-Bus interface to manage BMC services as 4 described by the [service management D-Bus interfaces][]. 8 An example use case for this service is BMCWeb's implementation of the Redfish 11 [service management d-bus interfaces]: 12 …https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/yaml/xyz/openbmc_project/Control/S… 14 https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/network_protocol.hpp 18 Implementation details are described in the [D-Bus interface README]. 20 The service config manager generally makes configuration changes to `systemd` 21 units via D-Bus interfaces. [all …]
|
/openbmc/phosphor-fan-presence/control/json/ |
H A D | manager.hpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 #include <phosphor-logging/log.hpp> 31 #include <sdbusplus/server/manager.hpp> 51 /* Application name to be appended to the path for loading a JSON config file */ 93 * particular signal object and stores the results in the manager 96 std::function<bool(sdbusplus::message_t&, const SignalObject&, Manager&)>; 117 * Package of data from a D-Bus call to get managed objects 119 * std::map<Path, // D-Bus Path 120 * std::map<Intf, // D-Bus Interface 121 * std::map<Property, // D-Bus Property [all …]
|
H A D | manager.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 #include "config.h" 18 #include "manager.hpp" 32 #include <systemd/sd-bus.h> 36 #include <sdbusplus/server/manager.hpp> 55 std::vector<std::string> Manager::_activeProfiles; 58 Manager::_servTree; 61 Manager::_objects; 62 std::unordered_map<std::string, PropertyVariantType> Manager::_parameters; 63 std::unordered_map<std::string, TriggerActions> Manager::_parameterTriggers; [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/ |
H A D | phosphor-ipmi-host_git.bb | 5 LICENSE = "Apache-2.0" 8 RRECOMMENDS:${PN} += "packagegroup-obmc-ipmid-providers-libs" 11 inherit obmc-phosphor-ipmiprovider-symlink 12 inherit obmc-phosphor-sdbus-service 13 inherit obmc-phosphor-systemd 14 inherit phosphor-ipmi-host 22 'VIRTUAL-RUNTIME_phosphor-ipmi-providers', True) or '' 24 whitelists = [ '{}-whitelist-native'.format(x) for x in whitelists ] 29 boot-flag-safe-mode \ 30 entity-manager-decorators \ [all …]
|
/openbmc/openbmc/meta-openpower/recipes-phosphor/occ/ |
H A D | openpower-occ-control_git.bb | 2 DESCRIPTION = "Application to control the OpenPOWER On-Chip-Controller" 3 HOMEPAGE = "https://github.com/openbmc/openpower-occ-control" 9 obmc-phosphor-dbus-service \ 11 phosphor-dbus-yaml 15 DBUS_SERVICE:${PN} += "org.open_power.OCC.Control.service" 16 SYSTEMD_SERVICE:${PN} += "op-occ-enable@.service" 17 SYSTEMD_SERVICE:${PN} += "op-occ-disable@.service" 19 DEPENDS += "virtual/${PN}-config-native" 22 ${PYTHON_PN}-sdbus++-native \ 23 phosphor-logging \ [all …]
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 4 PACKAGECONFIG:remove = "only-run-apr-on-power-loss" 5 PACKAGECONFIG:append = " host-gpio" 7 # Chassis Config 10 obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-on@{}.service \ 11 obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-running@{}.service \ 12 obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \ 13 obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \ 18 obmc-chassis-poweron@{}.target.wants/chassis-poweron@{}.service \ 19 obmc-chassis-hard-poweroff@{}.target.wants/chassis-poweroff@{}.service \ 20 obmc-chassis-powercycle@{}.target.wants/chassis-powercycle@{}.service \ [all …]
|
/openbmc/docs/designs/ |
H A D | entity-manager-hw-id-vpd-discover-via-device-tree.md | 1 # Entity-Manager HW ID: VPD Discovery via Device-Tree Properties 12 data via non-I2C channels and in a proprietary format that is not covered by 13 Entity-Manager's 'fru-device' daemon that most platforms rely on. 16 gathered from device tree file paths for Entity-Manager consumption. 20 Typical platforms provide HW ID data - often referred to as 'vital product data' 21 (VPD) - for the baseboard as a FRU storage blob held in a physical EEPROM. 23 [As described in Entity-Manager documentation](https://github.com/openbmc/entity-manager/blob/maste… 25 copied to D-Bus as properties of the `xyz.openbmc_project.FruDevice` interface 26 by Entity-Manager's fru-device daemon. The current FRU-device daemon is able to 27 decode IPMI-FRU storage formatted blobs, as well as the Tyan data format. [all …]
|
H A D | vpd-collection.md | 5 Created: 2019-06-11 10 Field Replaceable Units (FRUs) today - one example is the BMC FRU. On OpenPower 18 - Some of the VPD information such as FRU part number, serial number need to be 19 included in the Platform Error Logs (PELs) for calling out FRUs for service. 21 - Several use cases on the BMC require that the applications decide on a certain 26 - There are use cases for the BMC to send VPD data to the host 31 of certain parameters of the FRU (atypical - for FRUs that do not have an 39 Essentially, the IPZ VPD structure consists of key-value pairs called keywords. 52 - IPZ VPD has different records and keywords. 54 - IPZ VPD is required to implement and validate ECC as defined in the OpenPower [all …]
|
/openbmc/phosphor-bmc-code-mgmt/common/src/ |
H A D | software_manager.cpp | 3 #include <phosphor-logging/lg2.hpp> 16 using namespace phosphor::software::manager; 20 ctx(ctx), serviceNameSuffix(serviceNameSuffix), manager(ctx, "/") in SoftwareManager() 37 // NOLINTBEGIN(readability-static-accessed-through-instance) 40 // NOLINTEND(readability-static-accessed-through-instance) in initDevices() 43 .service("xyz.openbmc_project.ObjectMapper") in initDevices() 51 debug("[config] looking for dbus interface {INTF}", "INTF", iface); in initDevices() 56 for (auto& [service, interfaceNames] : v) in initDevices() 77 "[config] found configuration interface at {SERVICE}, {OBJPATH}", in initDevices() 78 "SERVICE", service, "OBJPATH", path); in initDevices() [all …]
|
/openbmc/openpower-vpd-parser/vpd-tool/include/ |
H A D | vpd_tool.hpp | 31 * - Pretty Name, Location Code, Sub Model 32 * - SN, PN, CC, FN, DR keywords under VINI record. 34 * @param[in] i_objectPath - DBus object path 51 * @param[in] i_inventoryObjPath - FRU inventory path. 52 * @param[in, out] io_fruJsonObject - JSON object. 53 * @param[in] i_interfaceList - list of interfaces implemented by the FRU on 66 * @param[in] i_inventoryObjPath - FRU inventory path. 67 * @param[in] i_infName - interface whose JSON need to be populated. 68 * @param[in] i_propList - List of properties needed in the JSON. 69 * @param[in, out] io_fruJsonObject - JSON object. [all …]
|
/openbmc/phosphor-bmc-code-mgmt/common/include/ |
H A D | software_manager.hpp | 6 #include <phosphor-logging/lg2.hpp> 14 using namespace phosphor::software::config; 17 namespace phosphor::software::manager namespace 35 // Map of EM config object path to device. 43 // @param service The dbus name where our configuration is 44 // @param config The common configuration properties which are shared 49 virtual sdbusplus::async::task<bool> initDevice(const std::string& service, 51 SoftwareConfig& config) = 0; 64 sdbusplus::server::manager_t manager; member in phosphor::software::manager::SoftwareManager 70 }; // namespace phosphor::software::manager
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/users/ |
H A D | phosphor-user-manager_git.bb | 1 SUMMARY = "Phosphor User Manager Daemon" 3 HOMEPAGE = "http://github.com/openbmc/phosphor-user-manager" 4 LICENSE = "Apache-2.0" 7 DEPENDS += "phosphor-logging" 8 DEPENDS += "phosphor-dbus-interfaces" 10 DEPENDS += "nss-pam-ldapd" 16 SRC_URI = "git://github.com/openbmc/phosphor-user-manager;branch=master;protocol=https" 22 inherit obmc-phosphor-dbus-service 25 EXTRA_OEMESON = "-Dtests=disabled" 27 PACKAGECONFIG ?= "root-user-mgmt" [all …]
|
/openbmc/phosphor-time-manager/ |
H A D | manager.hpp | 3 #include "config.h" 19 /** @class Manager 20 * @brief The manager to handle OpenBMC time. 25 class Manager class 30 explicit Manager(sdbusplus::bus_t& bus); 31 Manager(const Manager&) = delete; 32 Manager& operator=(const Manager&) = delete; 33 Manager(Manager&&) = delete; 34 Manager& operator=(Manager&&) = delete; 35 ~Manager() = default; [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | overlayfs.py | 4 # SPDX-License-Identifier: MIT 25 OVERLAYFS_MOUNT_POINT[mnt-overlay] = "/mnt/overlay" 36 config = """ 37 IMAGE_INSTALL:append = " overlayfs-user" 42 self.write_config(config) 44 self.write_recipeinc('overlayfs-user', overlayfs_recipe_append) 46 res = bitbake('core-image-minimal', ignore_status=True) 47 line = getline(res, "overlayfs-user was skipped: missing required distro features") 50 …self.assertTrue("ERROR: Required build target 'core-image-minimal' has no buildable providers." in… 59 config = """ [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | inventory_mac.cpp | 1 #include "config.h" 9 #include <phosphor-logging/elog-errors.hpp> 10 #include <phosphor-logging/lg2.hpp> 36 constexpr auto configFile = "/usr/share/network/config.json"; 47 Manager* manager = nullptr; variable 55 for (const auto& interface : manager->interfaces) in setFirstBootMACOnInterface() 59 auto returnMAC = interface.second->macAddress(mac); in setFirstBootMACOnInterface() 112 DbusService service; in getfromInventory() local 116 objPath = objectTree.begin()->first; in getfromInventory() 117 service = objectTree.begin()->second.begin()->first; in getfromInventory() [all …]
|
/openbmc/phosphor-led-manager/manager/ |
H A D | led-main.cpp | 1 #include "config.h" 6 #include "json-parser.hpp" 8 #include "led-gen.hpp" 10 #include "config-validator.hpp" 11 #include "manager.hpp" 27 CLI::App app("phosphor-led-manager"); in main() 31 app.add_option("-c,--config", configFile, "Path to JSON config"); in main() 39 /** @brief Dbus constructs used by LED Group manager */ in main() 48 /** @brief Group manager object */ in main() 49 phosphor::led::Manager manager(bus, systemLedMap, event); in main() local [all …]
|
/openbmc/openbmc/meta-security/meta-parsec/lib/oeqa/runtime/cases/ |
H A D | parsec.py | 15 cls.toml_file = '/etc/parsec/config.toml' 16 cls.tc.target.run('cp -p %s %s-original' % (cls.toml_file, cls.toml_file)) 21 self.parsec_status='systemctl status -l parsec' 24 self.parsec_status='pgrep -l parsec' 32 """ Copy a provider configuration to target and append it to Parsec config """ 38 (status, output) = self.target.copyTo(tmp_path, "%s-%s" % (self.toml_file, provider)) 40 … status, output = self.target.run('cat %s-%s >>%s' % (self.toml_file, provider, self.toml_file)) 44 """ Restore original Parsec config """ 45 self.target.run('cp -p %s-original %s' % (self.toml_file, self.toml_file)) 52 self.assertEqual(status, 0, msg='Parsec service is not running.\n%s' % output) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libgpiod/libgpiod-2.x/ |
H A D | run-ptest | 3 ptestdir=$(dirname "$(readlink -f "$0")") 6 export GPIODBUS_TEST_DAEMON_PATH="$ptestdir/tests/gpio-manager" 9 # libgpiod v2 uses gpio-sim - a configfs-based testing module. We need to 12 mountpoint /sys/kernel/config > /dev/null || mount -t configfs configfs /sys/kernel/config 15 systemctl stop gpio-manager 2> /dev/null > /dev/null 16 service gpio-manager stop 2> /dev/null > /dev/null 22 if [ $? -ne 0 ]; then 29 run_one_test gpiod-test 30 run_one_test gpio-tools-test.bash 31 run_one_test gpiod-cxx-test [all …]
|
/openbmc/pldm/libpldmresponder/examples/fru/ |
H A D | FRU_Master.json | 1 // This is the master config file for generating PLDM FRU records from the D-Bus 2 // inventory objects. "service" is the name of D-Bus service hosting the 3 // inventory D-Bus objects, "root_path" is the root path for all the inventory 4 // D-Bus objects and "entities" section specifies the type of FRU's for which 9 // corresponding config JSON's are needed for each record. In the example 10 // directory, Board_General.json is the config to generate the General FRU 11 // record for FRU of type Board and Board_VINI.json is the config to generate 13 // For all instances of the same FRU, the same config JSON will apply. 15 "service": "xyz.openbmc_project.Inventory.Manager", string
|
/openbmc/openpower-vpd-parser/ |
H A D | meson.build | 2 'vpd-manager', 16 '-Wno-psabi', 17 '-Wno-ignored-attributes', 23 add_project_arguments('-U_FORTIFY_SOURCE', language: ['cpp', 'c']) 32 phosphor_logging = dependency('phosphor-logging') 33 phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') 61 configure_file(output: 'config.h', configuration: conf_data) 63 services = ['service_files/vpd-manager.service'] 66 subdir('vpd-tool') 67 scripts = ['scripts/wait-vpd-status.sh'] [all …]
|