Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 759550
Collapse All | Expand All

(-)a/src/cap-ng.c (-3 / +3 lines)
Lines 698-716 int capng_apply(capng_select_t set) Link Here
698
				if (capng_have_capability(CAPNG_BOUNDING_SET,
698
				if (capng_have_capability(CAPNG_BOUNDING_SET,
699
								 i) == 0) {
699
								 i) == 0) {
700
				    if (prctl(PR_CAPBSET_DROP, i, 0, 0, 0) <0) {
700
				    if (prctl(PR_CAPBSET_DROP, i, 0, 0, 0) <0) {
701
					rc = -2;
701
//					rc = -2;
702
					goto try_caps;
702
					goto try_caps;
703
				    }
703
				    }
704
				}
704
				}
705
			}
705
			}
706
			m.state = CAPNG_APPLIED;
706
			m.state = CAPNG_APPLIED;
707
			if (get_bounding_set() < 0) {
707
			if (get_bounding_set() < 0) {
708
				rc = -3;
708
//				rc = -3;
709
				goto try_caps;
709
				goto try_caps;
710
			}
710
			}
711
		} else {
711
		} else {
712
			memcpy(&m, &state, sizeof(m)); /* restore state */
712
			memcpy(&m, &state, sizeof(m)); /* restore state */
713
			rc = -4;
713
//			rc = -4;
714
			goto try_caps;
714
			goto try_caps;
715
		}
715
		}
716
#endif
716
#endif

Return to bug 759550