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

(-)ChangeLog (+6 lines)
Lines 2-7 Link Here
2
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
2
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
3
# $Header$
3
# $Header$
4
4
5
  05 Aug 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
6
7
  Do not give an access violation if the access() system call do not have
8
  write/read access - it does not actually modify, so we only need to return
9
  not being able to write/read.
10
5
  01 Aug 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
11
  01 Aug 2005; Martin Schlemmer <azarah@gentoo.org> libsandbox.c:
6
12
7
  Still do normal log if debugging is requested.
13
  Still do normal log if debugging is requested.
(-)libsandbox.c (+14 lines)
Lines 1033-1038 Link Here
1033
			result = 1;
1033
			result = 1;
1034
			goto out;
1034
			goto out;
1035
		}
1035
		}
1036
1037
		/* If we are here, and still no joy, and its the access() call,
1038
		 * do not log it, but just return -1 */
1039
		if (0 == strncmp(func, "access_rd", 7)) {
1040
			sbcontext->show_access_violation = 0;
1041
			goto out;
1042
		}
1036
	}
1043
	}
1037
		
1044
		
1038
	if ((0 == strncmp(func, "access_wr", 7)) ||
1045
	if ((0 == strncmp(func, "access_wr", 7)) ||
Lines 1135-1140 Link Here
1135
			sbcontext->show_access_violation = 0;
1142
			sbcontext->show_access_violation = 0;
1136
			goto out;
1143
			goto out;
1137
		}
1144
		}
1145
1146
		/* If we are here, and still no joy, and its the access() call,
1147
		 * do not log it, but just return -1 */
1148
		if (0 == strncmp(func, "access_wr", 7)) {
1149
			sbcontext->show_access_violation = 0;
1150
			goto out;
1151
		}
1138
	}
1152
	}
1139
1153
1140
out:
1154
out:

Return to bug 101433