diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 17a1189f1ff81c4a1e9f8686ba4f493cb6c96939..6be273851144b0840c79f7a100cc53f269a6390d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -68,6 +68,7 @@ #include #include #include +#include #include "avc.h" #include "objsec.h" @@ -1943,7 +1944,7 @@ static int selinux_sb_copy_data(struct file_system_type *type, void *orig, void } } while (*in_end++); - copy_page(in_save, nosec_save); + strcpy(in_save, nosec_save); free_page((unsigned long)nosec_save); out: return rc;