Manjaro Manjaro Polkit Kuralları

Manjaro Polkit Kuralları

From Manjaro
This page is a translated version of the page Manjaro Polkit Rules and the translation is 56% complete.
Other languages:
English • ‎Türkçe • ‎русский

Polkit nedir?

polkit bir yetkilendirme yöneticisidir ve sistemin belirli bir görevi kimin yapmasına izin verildiğini yönetmesine yardımcı olur.

Polkit kuralları nedir?

Kurallar bir uygulama, kullanıcı ve sistem arasındaki ilişkinin tanımlarıdır.

99-manjaro.rules

Manjaro, aksi takdirde kullanıcının belirli bir eylem için kimlik doğrulamasını gerektirecek eylemler için bazı yararlı kurallar ekler. Manjaro tarafından eklenen kurallar, kullanıcının rahatlığının sistem güvenliğine karşı bulanıklaştığı durumları kapsayan kurallardır.

Aşağıdaki kuralları göz önünde bulundurun; tümü varsayılan Manjaro sistemine yüklenmiş bir kural kümesinin parçasıdır.

Bu ilk kural, tekerlek yönetim grubunun üyesi olan bir kullanıcının, kullanıcının kimlik doğrulamasını gerektirmeden diskleri ve bölümleri yönetmesini sağlar. Bu kural çıkarılabilir USB cihazlarının kullanımını kapsar. Dahili cihazlarla çakışma nedeniyle bu ayrıca kuralı, bu yönetici kullanıcının sistemin dahili cihazlarını değiştirmesine olanak tanır.

polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});

The second rule allows any user to control if the system should be shut down or restarted

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.power-off" ||
        action.id == "org.freedesktop.login1.reboot" ||
        action.id == "org.freedesktop.login1.hibernate" ||
        action.id == "org.freedesktop.login1.suspend") {
        return polkit.Result.YES;
    }
});

The third rule allows the upower daemon to hibernate or suspend the system

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.upower.hibernate" ||
        action.id == "org.freedesktop.upower.suspend") {
        return polkit.Result.YES;
    }
});

The fourth rule allows a member of the network group to use the bluetooth devices without authentication

/* Allow users of network group to use blueman feature requiring root without authentication */
polkit.addRule(function(action, subject) {
    if ((action.id == "org.blueman.network.setup" ||
         action.id == "org.blueman.dhcp.client" ||
         action.id == "org.blueman.rfkill.setstate" ||
         action.id == "org.blueman.pppd.pppconnect") &&
        subject.isInGroup("network")) {
        return polkit.Result.YES;
    }
});

Conclusion

Manjaro has added these rules to make the system easier - you could say less confusing - to the average user.

The rules is included in a file 99-manjaro.rules which is installed/maintained using the package manjaro-hotfixes

See Also

polkit documentation

--Frede H. 14:02, 13 April 2020 (CEST)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.