import PULS_20180308
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / ubifs / budget.c
index 0f7398b89ed199436773e49b6d84294d5dc82371..e342c573074fe2ef78edd4256af97a402c5320ce 100644 (file)
@@ -272,7 +272,7 @@ long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs)
  */
 static int can_use_rp(struct ubifs_info *c)
 {
-       if (uid_eq(current_fsuid(), c->rp_uid) || capable(CAP_SYS_RESOURCE) ||
+       if (uid_lte(current_fsuid(), c->rp_uid) || capable(CAP_SYS_RESOURCE) ||
            (!gid_eq(c->rp_gid, GLOBAL_ROOT_GID) && in_group_p(c->rp_gid)))
                return 1;
        return 0;