I conducted experiments for nearly 15 years with various food items just to see what really lasted for survival purposes. Long story short, jasmine and most white rice lasted the duration with no problems, as well as dried beans. Brown rice went rancid surprisingly quickly. Flour and flour based products (e.g. noodles, cake mix, pancake mix, cereals) went bad very quickly. Sardines were fresh and fine for 4 to 5 years, started to be a little less fresh out to 8 years, which is as long as I kept them. Canned foods generally lasted the duration, notably canned salmon which was still nearly perfect after 12 years.
I freeze brown rice.
It keeps much better that way.