diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-10-29 22:12:20 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-11-14 09:27:23 +0100 |
commit | 0c06f98ced2b70801147eb52d6596079e473dfc9 (patch) | |
tree | 11808bb72a07e2413c07a5ec381794400019fa5d /openbsc/include/openbsc/gprs_sgsn.h | |
parent | b1c074f62c1d04138b751f71e3b07fbb0a521898 (diff) |
sgsn: Move IMSI authorization to gsm48_gmm_authorize
Currently the IMSI is only checked immediately when an Attach Request
is received that contains an IMSI IE. If it contains a P-TMSI
instead, access is always granted.
This commit moves the IMSI check to gsm48_gmm_authorize where it is
applied when IMSI and IMEI have been acquired. This fixes the
authorization when the Attach Accept doesn't contain an IMSI.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 75797dba0..af21eaddb 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -117,6 +117,8 @@ struct sgsn_mm_ctx { * (refers to the timer) and pending_req (refers to the procedure), * where mm->T == 3350 => mm->t3350_mode == f(mm->pending_req). Check * whether one of them can be dropped. */ + + int is_authorized; }; #define LOGMMCTXP(level, mm, fmt, args...) \ |