diff -urN .zfs/snapshot/orig/sys/kern/kern_jail.c ./sys/kern/kern_jail.c
--- .zfs/snapshot/orig/sys/kern/kern_jail.c	2012-01-03 05:26:22.000000000 +0200
+++ ./sys/kern/kern_jail.c	2012-05-27 17:17:17.643606692 +0300
@@ -200,6 +200,7 @@
 	"allow.mount",
 	"allow.quotas",
 	"allow.socket_af",
+	"allow.extattr_system",
 };
 const size_t pr_allow_names_size = sizeof(pr_allow_names);
 
@@ -211,6 +212,7 @@
 	"allow.nomount",
 	"allow.noquotas",
 	"allow.nosocket_af",
+	"allow.noextattr_system",
 };
 const size_t pr_allow_nonames_size = sizeof(pr_allow_nonames);
 
@@ -3844,6 +3846,15 @@
 			return (EPERM);
 
 		/*
+		 * Conditionally allow accessing system extended attributes
+		 */
+	case PRIV_VFS_EXTATTR_SYSTEM:
+		if (cred->cr_prison->pr_allow & PR_ALLOW_EXTATTR_SYSTEM)
+			return (0);
+		else
+			return (EPERM);
+
+		/*
 		 * Allow jailed root to bind reserved ports and reuse in-use
 		 * ports.
 		 */
@@ -4130,6 +4141,10 @@
     CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
     NULL, PR_ALLOW_MOUNT, sysctl_jail_default_allow, "I",
     "Processes in jail can mount/unmount jail-friendly file systems");
+SYSCTL_PROC(_security_jail, OID_AUTO, extattr_system_allowed,
+    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
+    NULL, PR_ALLOW_EXTATTR_SYSTEM, sysctl_jail_default_allow, "I",
+    "Prison root can access and manipulate system extended attributes");
 
 static int
 sysctl_jail_default_level(SYSCTL_HANDLER_ARGS)
@@ -4262,6 +4277,8 @@
     "B", "Jail may set file quotas");
 SYSCTL_JAIL_PARAM(_allow, socket_af, CTLTYPE_INT | CTLFLAG_RW,
     "B", "Jail may create sockets other than just UNIX/IPv4/IPv6/route");
+SYSCTL_JAIL_PARAM(_allow, extattr_system, CTLTYPE_INT | CTLFLAG_RW,
+    "B", "Jail may access and manipulate system extended attributes");
 
 void
 prison_racct_foreach(void (*callback)(struct racct *racct,
diff -urN .zfs/snapshot/orig/sys/sys/jail.h ./sys/sys/jail.h
--- .zfs/snapshot/orig/sys/sys/jail.h	2012-01-03 05:27:07.000000000 +0200
+++ ./sys/sys/jail.h	2012-05-27 16:07:25.415160231 +0300
@@ -222,7 +222,8 @@
 #define	PR_ALLOW_MOUNT			0x0010
 #define	PR_ALLOW_QUOTAS			0x0020
 #define	PR_ALLOW_SOCKET_AF		0x0040
-#define	PR_ALLOW_ALL			0x007f
+#define	PR_ALLOW_EXTATTR_SYSTEM		0x0080
+#define	PR_ALLOW_ALL			0x00ff
 
 /*
  * OSD methods
