summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-07-30 20:05:35 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-08-02 04:39:33 +0900
commit9e5e21170e4de269cd5b9d53ac9d60d220e3be63 (patch)
treed719e40aa41897b306c4925c37a0d83579966a87
parentab99c733ae73cce31f2a2434f7099564e5a73d95 (diff)
sh: Fix up the audit arch endian specification.
Presently this was always being set to AUDIT_ARCH_SH, which assumes big endian. Fix this up so that the architecture actually reflects what we're running on. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/ptrace_32.c13
-rw-r--r--arch/sh/kernel/ptrace_64.c16
2 files changed, 27 insertions, 2 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c
index f48769b23bd6..035cb300d3dc 100644
--- a/arch/sh/kernel/ptrace_32.c
+++ b/arch/sh/kernel/ptrace_32.c
@@ -217,6 +217,17 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
return ret;
}
+static inline int audit_arch(void)
+{
+ int arch = EM_SH;
+
+#ifdef CONFIG_CPU_LITTLE_ENDIAN
+ arch |= __AUDIT_ARCH_LE;
+#endif
+
+ return arch;
+}
+
asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
{
long ret = 0;
@@ -233,7 +244,7 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
ret = -1L;
if (unlikely(current->audit_context))
- audit_syscall_entry(AUDIT_ARCH_SH, regs->regs[3],
+ audit_syscall_entry(audit_arch(), regs->regs[3],
regs->regs[4], regs->regs[5],
regs->regs[6], regs->regs[7]);
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c
index 236d8bef9ccd..5922edd416db 100644
--- a/arch/sh/kernel/ptrace_64.c
+++ b/arch/sh/kernel/ptrace_64.c
@@ -222,6 +222,20 @@ asmlinkage int sh64_ptrace(long request, long pid, long addr, long data)
return sys_ptrace(request, pid, addr, data);
}
+static inline int audit_arch(void)
+{
+ int arch = EM_SH;
+
+#ifdef CONFIG_64BIT
+ arch |= __AUDIT_ARCH_64BIT;
+#endif
+#ifdef CONFIG_CPU_LITTLE_ENDIAN
+ arch |= __AUDIT_ARCH_LE;
+#endif
+
+ return arch;
+}
+
asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs)
{
long long ret = 0;
@@ -238,7 +252,7 @@ asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs)
ret = -1LL;
if (unlikely(current->audit_context))
- audit_syscall_entry(AUDIT_ARCH_SH, regs->regs[1],
+ audit_syscall_entry(audit_arch(), regs->regs[1],
regs->regs[2], regs->regs[3],
regs->regs[4], regs->regs[5]);
main, development dictionaries repositoryroot
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2016-08-10Version 5.2.1.1, tag libreoffice-5.2.1.1libreoffice-5.2.1.1Christian Lohmaier0-0/+0
2016-08-10Branch libreoffice-5-2-1libreoffice-5-2-1Christian Lohmaier0-0/+0
2016-07-28cut size of README_en_GB.txtdistro/collabora/lov-5.2Aron Budea1-15573/+11
2016-07-20tdf#97393, tdf#100019: updated EN (CA, GB, US, ZA) dictionariesAron Budea10-44003/+46538
2016-07-07Update pt_PT dictionary to version 16.7.4.1Andras Timar3-46/+74
2016-06-21tdf#90786 Put license file in the right directoryAron Budea1-1/+2
2016-05-26Branch libreoffice-5-2Christian Lohmaier0-0/+0
2016-05-24gb_Dictionary_add_thesaurus doesn't like whitespacelibreoffice-5-2-branch-pointcp-5.1-branch-pointChristian Lohmaier1-3/+1
2016-05-23thesuaurs.idx is generated by gb_Dictionary_add_thesaurusChristian Lohmaier2-145870/+1
2016-05-23tdf#97393 Update English Dictionaries to 2016.05.01 releaseAron Budea15-164413/+310946
2016-05-18tdf#90786 Bundle license file, and update Scottish Gaelic dict to 3.1Aron Budea4-6870/+111641
2016-04-07Update Croatian dictionaryKrunoslav Šebetić4-60130/+60741
2016-04-05Bring shipped Spanish dictionary up to version 2.1Ricardo Palomares8-7989/+22236
2016-03-14Update Icelandic dictionary and thesaurusBjörgvin Ragnarsson4-27612/+35842
2016-03-10tdf#98531 Updated Croatian dictionaryKrunoslav Šebetić3-186339/+186648
2016-02-26Czech thesaurus: Blacklist more words + re-generate after the recent changes.Jan Holesovsky2-100422/+75153
2016-02-26dictionary-to-thesaurus.py: Put the better categorized words to the front.Jan Holesovsky1-7/+13
2016-02-26dictionary-to-thesaurus.py: Only output the same class of word.Jan Holesovsky1-5/+27
2016-02-25Czech thesaurus: Updates of some terms.Jan Holesovsky2-36/+17
2016-02-25Czech thesaurus: Blacklist some unhelpful meanings.Jan Holesovsky3-8/+14
2016-02-25dictionary-to-thesaurus.py: Move blacklist to a separate file.Jan Holesovsky2-16/+35
2016-02-25Related tdf#93514: Introduce a new Czech thesaurus.Jan Holesovsky6-5/+186534
2016-02-25dictionary-to-thesaurus.py: Actually use the Czech names.Jan Holesovsky1-4/+4
2016-02-25dictionary-to-thesaurus.py: Various cleanups.Jan Holesovsky1-12/+66
2016-02-25dos2unix on the cs_CZ files.Jan Holesovsky4-520/+514
2016-02-25Czech: Script and dictionary to generate the Czech thesaurus.Jan Holesovsky2-0/+217872
2016-02-11Updated pt_PT dictionary to version 16.1.3.4Andras Timar2-15/+20
2016-01-17Bring shipped Spanish dictionary up to version 2.0Ricardo Palomares7-48438/+56809
2016-01-07Update the Swedish spelling dictionariesNiklas Johansson3-79/+649
2016-01-04tdf#96782 updated German dictionariesAndras Timar15-150513/+345430
2015-12-28Updated Slovenian thesaurusAndras Timar3-380/+1468
2015-12-12Add Guarani thesaurus (gug-PY)Giovanni Caligaris11-0/+3293
2015-10-27tdf#95024 update Hungarian spelling dictionarylibreoffice-5-1-branch-pointLászló Németh4-83523/+84518
2015-10-15Update pt_PT dictionary to version 15.10.3.1Andras Timar2-3/+4
2015-09-28tdf#94573: invalid encoding in hyph_zu_ZAJulien Nabet1-1/+1
2015-09-21tdf#94415 update Greek dictionary to version 0.9Andras Timar