Могу получить доступ к общим ресурсам Samba, но не могу перечислить общие ресурсы.

Полное объявление в rk3288-veyron-chromebook.dtsi— это

&i2c4 {
    trackpad@15 {
        compatible = "elan,ekth3000";
        reg = <0x15>;
        interrupt-parent = <&gpio7>;
        interrupts = <RK_PA3 IRQ_TYPE_EDGE_FALLING>;
        pinctrl-names = "default";
        pinctrl-0 = <&trackpad_int>;
        vcc-supply = <&vcc33_io>;
        wakeup-source;
    };
};

Глядя на включенный файл rk3288-veyron.dtsi, есть

&i2c4 {
    status = "okay";

    clock-frequency = <400000>;
    i2c-scl-falling-time-ns = <50>;         /* 11ns measured */
    i2c-scl-rising-time-ns = <300>;         /* 225ns measured */
};

и далее поrk3288.dtsi

i2c4: i2c@ff160000 {
        compatible = "rockchip,rk3288-i2c";
        reg = <0x0 0xff160000 0x0 0x1000>;
        interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
        #address-cells = <1>;
        #size-cells = <0>;
        clock-names = "i2c";
        clocks = <&cru PCLK_I2C4>;
        pinctrl-names = "default";
        pinctrl-0 = <&i2c4_xfer>;
        status = "disabled";
};

Таким образом, это очень похоже на то, что интерфейс I2C не является интерфейсом GPIO, а использует выделенный диапазон регистров в Rockchip.

Пробовали ли вы искать шины I2C в /sys/busсоотв. /sys/class?

1
23.04.2020, 23:53
1 ответ

Проблема заключается в следующем параметре:

nt pipe support = no

Это извлечено из роли Ansible samba, которую я использую(https://galaxy.ansible.com/bertvv/samba)

CVE-2017-7494 A remote code execution vulnerability may affect your Samba server installation. Samba versions 3.5.0 and before 4.6.4 are affected. If SELinux is enabled on your system, it is NOT vulnerable.

This role will check if the installed version of Samba is affected by the vulnerability and apply the proposed workaround: adding nt pipe support = no to the [global] section of the configuration. Remark that this disables share browsing by Windows clients.

You can explicitly disable the fix if necessary, by setting the role variable samba_mitigate_cve_2017_7494 to false.

1
19.03.2021, 02:26

Теги

Похожие вопросы